Programming Thread

Viewing single post

Started by the-pi-guy, Mar 13, 2016, 10:39 PM

previous topic - next topic

Legend

Sep 22, 2019, 03:09 AM Last Edit: Sep 22, 2019, 03:50 PM by Legend
Trying to add text has been kind of a pain. 

I'm sure there's a better library or a better explanation, but the whole process has been stitching parts together. 

This is how to create the font using sdl, this is how to turn it into a texture for opengl, this is how to display the texture.

So then when it doesn't work, it's like was it one of those 3 steps, or is there something wrong with my shaders? 

I like graphics programming, but it doesn't give error codes the way "regular" programming does.

I'd still say it's easier than debugging grammars.
 

It's been kind of fun though.  Learning more about debugging.
With shader debugging I always end up writing the dumbest tests to figure out what is happening. You can throw in a bunch of if statements and just see what's up.

Do you have regular textures working yet?