That works! I'm one huge step closer to porting HIVE to opengl. Thank you.
Type: Posts; User: hive
That works! I'm one huge step closer to porting HIVE to opengl. Thank you.
I should have shown the code that draws the white box. Here it is:
glBegin(GL_QUADS);
glColor3ub(255,255,255);
glVertex2i(x1,y1);
glVertex2i(x1,y2);
glVertex2i(x2,y2);
...
I'm making a sprite system for opengl; I can load the bitmaps (plural bitmaps, because there's an alpha mask) ok. I can make the quad ok. Then I render it. What is not ok is what happens when I try...
It didn't work. I tried putting glOrtho(0,W-1,0,H-1,0,0); where W is the width and H is the height; it failed.
Edit:
It works! I just had to try glOrtho(0,W-1,0,H-1,1,-1); ! I am so greatfull; I...
I've been trying to port HIVE to OpenGL for some time (multiple attempts). My biggest problem is the coordanate system. I would like HIVE to be consistant by always using the same coordanate system;...
I'm using GDI, not direct 3d.
Loopshot, thanks for telling me. Does anyone know of an alternative?
That functions doesn't work for older vesions of Windows. Does anyone know of one that does?
That function should work great.
Does anyone know how to dispaly a bitmap so it's rotated a specific number of degrees using GDI? This is for HIVE.
This is a breakout clone. You move the paddle with the arrow keys.
Operating system: XP Home SP1
Compiler: Dev-C++ 4.9.9.2
Libaries: HIVE
Description: Hit the bricks at the top of the...