OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CullingInterface Class Referenceabstract

#include <culling.hpp>

Inheritance diagram for CullingInterface:
HiZCulling HiZCullingNoLOD

Public Member Functions

virtual ~CullingInterface ()
 
virtual void setup_occluder_geometry (const std::vector< vec4 > &positions, const std::vector< uint32_t > &indices)=0
 
virtual void set_view_projection (const mat4 &projection, const mat4 &view, const vec2 &zNearFar)=0
 
virtual void rasterize_occluders ()=0
 
virtual void test_bounding_boxes (GLuint counter_buffer, const unsigned *counter_offsets, unsigned num_offsets, const GLuint *culled_instance_buffer, GLuint instance_data_buffer, unsigned num_instances)=0
 
virtual GLuint get_depth_texture () const
 
virtual unsigned get_num_lods () const
 

Protected Member Functions

void compute_frustum_from_view_projection (vec4 *planes, const mat4 &view_projection)
 

Detailed Description

Definition at line 40 of file culling.hpp.

Constructor & Destructor Documentation

virtual CullingInterface::~CullingInterface ( )
inlinevirtual

Definition at line 43 of file culling.hpp.

Member Function Documentation

void CullingInterface::compute_frustum_from_view_projection ( vec4 planes,
const mat4 view_projection 
)
protected

Definition at line 23 of file culling.cpp.

virtual GLuint CullingInterface::get_depth_texture ( ) const
inlinevirtual

Reimplemented in HiZCulling.

Definition at line 60 of file culling.hpp.

virtual unsigned CullingInterface::get_num_lods ( ) const
inlinevirtual

Reimplemented in HiZCullingNoLOD.

Definition at line 62 of file culling.hpp.

virtual void CullingInterface::rasterize_occluders ( )
pure virtual

Implemented in HiZCulling.

virtual void CullingInterface::set_view_projection ( const mat4 projection,
const mat4 view,
const vec2 zNearFar 
)
pure virtual

Implemented in HiZCulling.

virtual void CullingInterface::setup_occluder_geometry ( const std::vector< vec4 > &  positions,
const std::vector< uint32_t > &  indices 
)
pure virtual

Implemented in HiZCulling.

virtual void CullingInterface::test_bounding_boxes ( GLuint  counter_buffer,
const unsigned *  counter_offsets,
unsigned  num_offsets,
const GLuint culled_instance_buffer,
GLuint  instance_data_buffer,
unsigned  num_instances 
)
pure virtual

Implemented in HiZCulling.


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