Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Viewports required?

$
0
0
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)} }

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>