00001
00010 #ifndef GRAPHIC_RELATIVE_H_DEF
00011 #define GRAPHIC_RELATIVE_H_DEF
00012
00013
00014
00015 #include <windows.h>
00016 #include <stdio.h>
00017 #include <stdarg.h>
00018 #include <GL\glut.h>
00019 #include <GL\gl.h>
00020 #include <GL\glu.h>
00021 #include <GL\glaux.h>
00022
00023 #include "../joystick/joystick_PC.h"
00024
00025
00026
00027
00028
00029
00030 #include "../hydro_source/Datas.h"
00031
00032 #include "Sea.h"
00033
00034 #include "solid_objects.h"
00035
00036
00037
00038
00039
00040 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
00041 GLvoid ReSizeGLScene(GLsizei width, GLsizei height);
00042
00044
00048 int InitGL(GLvoid);
00049
00051
00056 int DrawGLScene(datas* d);
00057 GLvoid KillGLWindow(GLvoid);
00058
00060 BOOL CreateGLWindow(char* title, int width, int height, int bits, bool fullscreenflag);
00061
00063
00068 int draw_graphics_init(datas *d);
00069
00071
00078 bool draw_graphics(datas *d);
00079
00080
00082
00086 int draw_graphics_kill();
00087
00089
00094 void pass_joy_parameters(joy_parameters *jP);
00095
00096
00097 #endif