Using Strings

Started by
2 comments, last by Pacey 21 years, 9 months ago
I am new to API. I used to work in console and used strings. Is there a way to use them in opengl, or some suitable alternative?
Advertisement
You mean printing text? See tutorials 13, 14, 15, and 17.
---visit #directxdev on afternet <- not just for directx, despite the name
Well, I want to be able to switch between pictures. So, if a key is pressed the variable picture will change from "this.bmp" to "that.bmp."
You need to load both bitmaps during startup and maintain a global variable indicating which bitmap should be presently used. Then handle appropriate keys in WM_KEYDOWN or WM_CHAR and set the global variable to either the first or the second bitmap mode.
---visit #directxdev on afternet <- not just for directx, despite the name

This topic is closed to new replies.

Advertisement