So, I'm starting to attempt routines for rendering GUI elements for the Star Trek game. Right now, I have three routines: Render_BGclear, Render_Object, and Render_Update.
Render_BGclear, is the first routine which is used to fill the view screen with the basic space background (a star field, with nothing on it).
Render_Object is used to render something on top of the background, like a star or nebula or ship or something.
Render_Update is used to update the display.
Should I use a routine for this, or should I use direct I/O? Also, if Direct I/O is recommended, can someone give me an example of how to do it, like pseudo-code. Thanks.
Also, any other recommendations for GUI routines I should make for the game, or a different way to handle rendering, I'm all ears....well eyes.
Render_BGclear, is the first routine which is used to fill the view screen with the basic space background (a star field, with nothing on it).
Render_Object is used to render something on top of the background, like a star or nebula or ship or something.
Render_Update is used to update the display.
Should I use a routine for this, or should I use direct I/O? Also, if Direct I/O is recommended, can someone give me an example of how to do it, like pseudo-code. Thanks.
Also, any other recommendations for GUI routines I should make for the game, or a different way to handle rendering, I'm all ears....well eyes.