00001 #ifndef LANDPATCH_ 00002 #define LANDPATCH_ 00003 00004 #include <stdio.h> 00005 #include <windows.h> 00006 #include <GL/gl.h> 00007 #include <GL/glu.h> 00008 #include <GL/glut.h> 00009 00010 #include "VertexArrayObject.h" 00011 00017 class LandPatch: public VertexArrayObject 00018 { 00019 public: 00039 LandPatch (float * height_field, int size_x, int size_y, int offset_x, int offset_y, int total_x, int total_y, float stride, int xy_jump); 00040 00044 ~LandPatch (); 00045 00046 private: 00047 LandPatch (); 00048 00049 float * data; 00050 GLuint * indices; 00051 00052 00053 }; 00054 00055 #endif