DI-Guy SDK Documentation  13.2
diguyOglGraphicsShape.h
Go to the documentation of this file.
1 #pragma once
2 
3 // needed for function prototypes
4 #include <GL/glew.h>
5 #include <GL/gl.h>
6 
7 #include <diguyGraphicsShape.h>
8 
25 {
26 
27 public:
28 
29  diguyOglGraphicsShape(void* internal_data);
30 
31  virtual void build();
32  virtual void unbuild();
33  virtual void draw(int lod);
34  virtual void update_variation_texture(int num_pixels, unsigned char * pixel_data);
35  virtual void hide(){ ; }
36  virtual void show(){ ; }
37 
39  static void create_shared_variation_texture();
40 
41 protected:
42 
47 
48 };
49 
50 
58 
diguyGraphicsShape * diguyOglGraphicsShape_create_func(void *internal_data)
Create function declaration.
Definition: diguyOglGraphicsShape.cpp:241
virtual void unbuild()
This function will be called by DI-Guy when it is time for the renderer-specific shape objects create...
Definition: diguyOglGraphicsShape.cpp:78
virtual void show()
This function will be called by DI-Guy when the shape should be shown, typically due to a change in t...
Definition: diguyOglGraphicsShape.h:36
static void create_shared_variation_texture()
Definition: diguyOglGraphicsShape.cpp:177
static GLuint get_shared_variation_texture()
Definition: diguyOglGraphicsShape.h:38
virtual void update_variation_texture(int num_pixels, unsigned char *pixel_data)
Pushes a char * pixel buffer of length num_pixels that represents the unique per shape texture...
Definition: diguyOglGraphicsShape.cpp:213
This class is part of the DI-Guy Graphics API.
Definition: diguyOglGraphicsShape.h:24
A class that represents the unique per-character non-shared mesh object. DI-Guy encapsulates its text...
Definition: diguyGraphicsShape.h:51
virtual void hide()
This function will be called by DI-Guy when the shape should be hidden, typically due to a change in ...
Definition: diguyOglGraphicsShape.h:35
static GLuint sm_variation_texture_object
Variable containing data generated during the Build Stage.
Definition: diguyOglGraphicsShape.h:46
diguyOglGraphicsShape(void *internal_data)
Definition: diguyOglGraphicsShape.cpp:31
virtual void build()
This function will be called by DI-Guy when it is time for renderer-specific shape objects to be crea...
Definition: diguyOglGraphicsShape.cpp:55
virtual void draw(int lod)
This function will be called by DI-Guy when it is time for the geometry of this shape to be drawn...
Definition: diguyOglGraphicsShape.cpp:107