I'm attempting to get a triangle to display in DirectX 11, but it seems like I can only get it to show when I have created and set a viewport
Is having at least 1 viewport set required in DirectX 11? If not what have I done wrong if my triangle's vertex data looks like:
Vertex vertices[] = {
{0.0f, 0.0f, 0.0f, 1.0f, Color(1.0f, 0.0f, 0.0f, 1.0f)},
{100.0f, 0.0f, 0.0f, 1.0f, Color(1.0f, 0.0f, 0.0f, 1.0f)},
{100.0f, 100.0f, 0.0f, 1.0f, Color(1.0f, 0.0f, 0.0f, 1.0f)}
}
↧