OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
OpenXcom::helper::controler< SurfaceType > Struct Template Reference

helper class for handling implementation differences in different surfaces types Used in function ShaderDraw. More...

#include <ShaderDrawHelper.h>

Public Member Functions

const GraphSubsetget_range ()
 function used only when SurfaceType can be used as destination surface if that type should not be used as dest dont implements this. More...
 
void mod_range (GraphSubset &g)
 function used only when SurfaceType is used as source surface. More...
 
void set_range (const GraphSubset &g)
 set final drawing range. More...
 

Detailed Description

template<typename SurfaceType>
struct OpenXcom::helper::controler< SurfaceType >

helper class for handling implementation differences in different surfaces types Used in function ShaderDraw.

Member Function Documentation

template<typename SurfaceType >
const GraphSubset& OpenXcom::helper::controler< SurfaceType >::get_range ( )
inline

function used only when SurfaceType can be used as destination surface if that type should not be used as dest dont implements this.

Returns
start drawing range
template<typename SurfaceType >
void OpenXcom::helper::controler< SurfaceType >::mod_range ( GraphSubset g)
inline

function used only when SurfaceType is used as source surface.

function reduce drawing range.

Parameters
gmodify drawing range
template<typename SurfaceType >
void OpenXcom::helper::controler< SurfaceType >::set_range ( const GraphSubset g)
inline

set final drawing range.

Parameters
gdrawing range

The documentation for this struct was generated from the following file: