home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-

New Paste :: Recent Pastes:: No Line Numbers

B0rk3d somewhere? by Xypher
#ifndef GL_WINDOW_H
#define GL_WINDOW_H

#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include "vector3d.h"
#include "gl_camera3d.h"
#include "logfile.h"
#include "gl_font.h"
#include "data_volume.h"
#include "physics.h"
#include "dynamic_array.h"


        HGLRC glw_hRC;
        HWND glw_hWnd;
        HDC glw_hDC;
        MSG glw_msg;
        HINSTANCE glw_hInst;
        WNDCLASSEX glw;
        LOGFILE glwlog;
        GLFONT glw_font;
        DATAVOLUME d;
        bool glw_msg_debug, glw_draw_fps;
        bool fullscreen;       
        char * glwlogf;
        float pointrotate, pointsize;
        float glw_frameinterval, glw_fps;
        float currenttime, fpscurrenttime;
        long glw_width, glw_height, glw_bits, glw_zbits;
        float glw_fov, glw_znear, glw_zfar;

        unsigned int posx, posy, width, height, bits, zbuffer;
        GLCAMERA3D glw_camera [8];
        unsigned int glw_cameranum;
        unsigned long dp;
        GLWINDOW(float, float, float, long, long, long, long);
        GLvoid KillWindow();
        int Init(int, int, int, int, int, int, bool, HINSTANCE, WNDPROC);
        GLvoid Resize(int, int);
        int InitGL();
        bool SpawnWindow();
        bool ToggleWindowed(int, int, int, int, int, int, bool, HINSTANCE, WNDPROC);     
        GLvoid ComputeScene(GLvoid);
        int DrawScene(GLvoid);
        GLvoid CalcFPS();
        int SetPFD();