Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

mesh.cpp File Reference

#include "mesh.h"
#include "rendcontext.h"
#include "gl.h"
#include "glext.h"
#include <cassert>
#include <iostream>

Include dependency graph for mesh.cpp:

Go to the source code of this file.

Functions

static bool isVBOSupported ()

Variables

static const unsigned int MinVBOSize = 4096
static bool VBOSupported = false
static bool VBOSupportTested = false
static size_t VertexAttributeFormatSizes [Mesh::FormatMax]


Function Documentation

static bool isVBOSupported  )  [static]
 

Definition at line 36 of file mesh.cpp.

References ExtensionSupported(), VBOSupported, and VBOSupportTested.

Referenced by Mesh::render().

00037 {
00038     if (!VBOSupportTested)
00039     {
00040         VBOSupportTested = true;
00041         VBOSupported = ExtensionSupported("GL_ARB_vertex_buffer_object");
00042     }
00043 
00044     return VBOSupported;
00045 }


Variable Documentation

const unsigned int MinVBOSize = 4096 [static]
 

Definition at line 32 of file mesh.cpp.

Referenced by Mesh::render().

bool VBOSupported = false [static]
 

Definition at line 34 of file mesh.cpp.

Referenced by isVBOSupported().

bool VBOSupportTested = false [static]
 

Definition at line 33 of file mesh.cpp.

Referenced by isVBOSupported().

size_t VertexAttributeFormatSizes[Mesh::FormatMax] [static]
 

Initial value:

 
{
     4,  
     8,  
     12, 
     16, 
     4,  
}

Definition at line 19 of file mesh.cpp.

Referenced by Mesh::VertexDescription::validate().


Generated on Sat Jan 14 22:30:56 2006 for Celestia by  doxygen 1.4.1