¡@

Home 

c++ Programming Glossary: screen_height

Opengl: 2d HUD over 3D

http://stackoverflow.com/questions/5467218/opengl-2d-hud-over-3d

GL_PROJECTION glLoadIdentity glOrtho 0 SCREEN_WIDTH SCREEN_HEIGHT 0 1 1 glMatrixMode GL_MODELVIEW glLoadIdentity glColor3f 0.0f.. glPushMatrix glLoadIdentity glOrtho 0.0 SCREEN_WIDTH SCREEN_HEIGHT 0.0 1.0 10.0 glMatrixMode GL_MODELVIEW glPushMatrix Not sure..

C++ triangle rasterization

http://stackoverflow.com/questions/7870533/c-triangle-rasterization

#include stdio.h #include string.h #include time.h #define SCREEN_HEIGHT 22 #define SCREEN_WIDTH 78 Simulated frame buffer char Screen.. #define SCREEN_WIDTH 78 Simulated frame buffer char Screen SCREEN_HEIGHT SCREEN_WIDTH void SetPixel long x long y char color if x 0 x.. long x long y char color if x 0 x SCREEN_WIDTH y 0 y SCREEN_HEIGHT return Screen y x color void Visualize void long x y for y 0..

Glew problems, unresolved externals

http://stackoverflow.com/questions/11059971/glew-problems-unresolved-externals

lib opengl32.lib using namespace std GLsizei screen_width screen_height float camera 3 0.0f 10.0f 15.0f float xPos 0 float yPos 10 float.. void resize int p_width int p_height if screen_width 0 screen_height 0 exit 0 screen_width p_width Obtain the new screen width values.. p_width Obtain the new screen width values and store it screen_height p_height Height value glClear GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT..