Overte C++ Documentation
GeometryCache Class Reference

Stores cached geometry. More...

#include <GeometryCache.h>

Inherits Dependency.

Public Member Functions

void useSimpleDrawPipeline (gpu::Batch &batch, bool noBlend=false)
 Set a batch to the simple pipeline, returning the previous pipeline.
 
const ShapeData * getShapeData (Shape shape) const
 

Static Public Member Functions

static GeometryCache::Shape getShapeForEntityShape (int entityShapeEnum)
 

Detailed Description

Stores cached geometry.

Member Function Documentation

◆ getShapeData()

const GeometryCache::ShapeData * GeometryCache::getShapeData ( Shape  shape) const

returns ShapeData associated with the specified shape, otherwise nullptr in the event of an error.

◆ getShapeForEntityShape()

GeometryCache::Shape GeometryCache::getShapeForEntityShape ( int  entityShapeEnum)
static
Parameters
entityShapeEnumThe entity::Shape enumeration for the shape whose GeometryCache::Shape is desired.
Returns
GeometryCache::NUM_SHAPES in the event of an error; otherwise, the GeometryCache::Shape enum which aligns with the specified entityShapeEnum

The documentation for this class was generated from the following files: