Browsed by
Category: Uncategorised

Visual Studio Solution-Wide Defines

Visual Studio Solution-Wide Defines

Sometimes it’s useful to have a define that is set on the solution and applied to all projects in that solution. For example, you might have a define for enabling run-time checks which you don’t normally want enabled in a project, but you do want it enabled when the project is included in a test harness solution. So, assume we have a define called ENABLE_RUNTIME_CHECKS in MyProject which we only want enabled in our project when it is included in…

Read More Read More

Texture Coordinates – D3D vs. OpenGL

Texture Coordinates – D3D vs. OpenGL

I recently had to remind myself how texture coordinates work in D3D and OpenGL. It’s actually pretty simple, but I found a lot of conflicting advice out there. Some people say UV coordinates are handled differently in OpenGL and D3D, some say they are the same. Some say you need to vertically flip your textures when they are loaded. The problem is that the advice often works even if the explanation is incorrect. There are two things to consider: Which…

Read More Read More