![]() - in your Render function, try translating your projection matrix by (0.5f,0.5f) or (0.375f,0.375f) If text or lines are blurry when integrating ImGui in your engine: This is the main rendering function that you have to implement and provide to ImGui (via setting up 'RenderDrawListsFn' in the ImGuiIO structure) Static ID3D11BlendState * g_blendState = NULL Static ID3D11SamplerState * g_pFontSampler = NULL Static ID3D11ShaderResourceView * g_pFontTextureView = NULL Static ID3D11PixelShader * g_pPixelShader = NULL Static ID3D10Blob * g_pPixelShaderBlob = NULL Static ID3D11Buffer * g_pVertexConstantBuffer = NULL Static ID3D11InputLayout * g_pInputLayout = NULL Static ID3D11VertexShader * g_pVertexShader = NULL Static ID3D10Blob * g_pVertexShaderBlob = NULL Static ID3D11RenderTargetView * g_mainRenderTargetView Static IDXGISwapChain * g_pSwapChain = NULL ![]() ![]() Static ID3D11DeviceContext * g_pd3dDeviceImmediateContext = NULL Static ID3D11Device * g_pd3dDevice = NULL # pragma warning (disable: 4996) // 'This function or variable may be unsafe': strdupÄ®xtern const char * vertexShader // Implemented at the bottom D3d11.lib d3dcompiler.lib dxgi.lib imm32.lib %(AdditionalDependencies) Ä3d11.lib d3dcompiler.lib dxgi.lib imm32.lib %(AdditionalDependencies) -0,0 +1,627 include
0 Comments
Leave a Reply. |