Thanks Czar Flavius. Sometimes it's better to do a google search with blitzbasic attached than a board search ^^
I found the following: http://www.blitzbasic.com/Community/posts.php?topic=41793#750486
It's OpenGL only. The advantage is if you have a lot Matrix calculation stuff (like camera zomming) this will work right out of the box. You just need to enclose your drawing commands with 2 GL commands:
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)
DrawRect( (entity.position.x * cam.position.z) - (cam.position.x * cam.position.z) + cam.screen_center_x, (entity.position.y * cam.position.z) - (cam.position.y * cam.position.z) + cam.screen_center_y, entity.image.width, entity.image.height )
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
That is how it looks in my code.
So thanks, problem solved.
|