Archived

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

unknownnick

SimpEngine

Recommended Posts

Hy! I''m changing a SimpEngine a bit, and I''m having one little problem. I can''t find where in the code we set the cursor position to bi in the center of a window. I just can''t find that piece of code. I''d be glad if anyone could help me. Sorry about my english

Share this post


Link to post
Share on other sites
in the CGUI::Draw() method, these lines specifically:


  
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
crosshair->SetRGBA(1.0f, 0.1f, 0.1f, 0.7f);
crosshair->SetPos3D(-0.03f, -0.03f, -5.0f);
crosshair->Print("+");
glDisable(GL_BLEND);


Where crosshair is a CFont. Enjoy!


Kevin "Khawk" Hawkins
CEO and News Director, GameDev.net
Software Engineer, Raydon Corporation
Author, OpenGL Game Programming
Developer Diary

Share this post


Link to post
Share on other sites
Thanks!

Yes, I was counting on author too

btw. The engine is very cool (nice structure) and is a good way to start.

[edited by - unknownnick on August 31, 2002 3:58:32 AM]

Share this post


Link to post
Share on other sites