Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Suggestions for Shining3D...

This topic is 5823 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In the first tutorial code, I noticed that the glPrint function was quite basic so I added a new functionality to it which I had with similar Text functions in VB and DirectX. I added a color functionality, to eliminate code being written in the call part. Basically, it is like this: GLvoid engine::glPrint(GLint x, GLint y, const char *string, int red, int green, int blue, ...); then at the end of the actualy function, I modded it to be like this... // Set the color glColor4f(red,green,blue,1); glCallLists(strlen(text), GL_UNSIGNED_BYTE, text); // Draws The Display List Text glPopMatrix(); // Restore The Old Projection Matrix // Unset the color glColor4f(1,1,1,1); and finnally, the call to the function looks like this (for red text) s3d.glPrint(425,750,"Unknown Soldier",1,0,0); basically, it takes in a rgb value uses it and then sets the color back to normal after using it...i decided to post here because with game engines it is important to keep the code down and modularity up...so I think you should add this bit to the tutorial... =)

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!