|
GCOP
1.0
|
#include <demview.h>


Public Member Functions | |
| DemView (const Dem &dem) | |
| virtual | ~DemView () |
| void | Reset () |
| void | Render () |
| bool | RenderFrame (int i) |
| void | SetTexture (const char *fname) |
Public Attributes | |
| float | color [3] |
| bool | wire |
| draw as wire mesh (false by default) | |
Protected Member Functions | |
| void | Init () |
Protected Attributes | |
| const Dem & | dem |
| float * | vertices |
| int | mesh_ind_count |
| GLuint * | mesh_inds |
| float * | normals |
| GLuint | texture |
| texture | |
| DemView::DemView | ( | const Dem & | dem | ) |
| DemView::~DemView | ( | ) | [virtual] |
| void DemView::Init | ( | ) | [protected] |
References color, CROSS, gcop::Dem::cs, dem, DIV3, gcop::Dem::Get(), mesh_ind_count, mesh_inds, MINUS3, gcop::Dem::ni, gcop::Dem::nj, NORM3, normals, and vertices.
| void DemView::Render | ( | ) | [virtual] |
Render a view: all subclasses should provide this method
Reimplemented from gcop::View.
References RenderFrame().
| bool DemView::RenderFrame | ( | int | i | ) | [virtual] |
Render a view: all subclasses should provide this method
| i | frame # |
Reimplemented from gcop::View.
References color, dem, gcop::Dem::Get(), gcop::Dem::h, gcop::Dem::ni, gcop::Dem::nj, gcop::Dem::normals, gcop::Dem::o, texture, gcop::Dem::w, and wire.
Referenced by Render().
| void DemView::Reset | ( | ) |
References Init().
| void DemView::SetTexture | ( | const char * | fname | ) |
References gcop::Viewer::LoadTexture(), and texture.
| float gcop::DemView::color[3] |
Referenced by DemView(), Init(), and RenderFrame().
const Dem& gcop::DemView::dem [protected] |
Referenced by Init(), and RenderFrame().
int gcop::DemView::mesh_ind_count [protected] |
Referenced by Init().
GLuint* gcop::DemView::mesh_inds [protected] |
Referenced by DemView(), Init(), and ~DemView().
float* gcop::DemView::normals [protected] |
Referenced by DemView(), Init(), and ~DemView().
GLuint gcop::DemView::texture [protected] |
texture
Referenced by DemView(), RenderFrame(), SetTexture(), and ~DemView().
float* gcop::DemView::vertices [protected] |
Referenced by DemView(), Init(), and ~DemView().
| bool gcop::DemView::wire |
draw as wire mesh (false by default)
Referenced by DemView(), and RenderFrame().
1.7.6.1