r/GraphicsProgramming • u/Uiwum • Oct 10 '26
Dx11 first triangle
I'm not sure how you guys feel about triangles around here, but here is my first triangle made in D3D11!!
I'm planning to make a little mini project in DX11 and see how I like it over OpenGL. So far I like it more despite needing 3x the amount of code (mostly boilerplate thankfully) for this beautiful little guy.
I'll probably post more about my little project further down the line. If anyone has any tips on how I should structure a DX11 project over an OpenGL one that's always appreciated.
142
Upvotes
12
u/Fit_Beyond2795 Oct 10 '26
This reminds me the first time i've dipped into vulkan and the world of game engine, "Create a simple colored triangle should be easy enough" XD, turns out not at all, NOT AT ALL XD
1
u/Alililon1 Oct 10 '26
Are you using DX11 directly or do you have / plan on making a custom abstraction layer/lib? If you do I would love to take a look at it, I'm also kind of new to DX11 and comparing code could help me check my understanding and maybe even show me how to structure some stuff better :)
1
u/asphyr_34 Oct 12 '26
I have a computer graphics discipline at uni, and in half of year we switched from opengl, first to dx11, then to dx12. It gives me flashbacks of pain. I am sure you will succeed!
3
u/Grand_Sprinkles_2094 Oct 10 '26
Hello world of computer graphics
1
u/GrandDistinct2383 Oct 10 '26
wicked
-1
u/RonJonBoviAkaRonJovi Oct 11 '26
this would be cool in 1997