Otclient  14/8/2020
CoordsBuffer Class Reference

#include <coordsbuffer.h>

Public Member Functions

 CoordsBuffer ()
 
 ~CoordsBuffer ()
 
void clear ()
 
void addTriangle (const Point &a, const Point &b, const Point &c)
 
void addRect (const Rect &dest)
 
void addRect (const Rect &dest, const Rect &src)
 
void addQuad (const Rect &dest, const Rect &src)
 
void addUpsideDownQuad (const Rect &dest, const Rect &src)
 
void addBoudingRect (const Rect &dest, int innerLineWidth)
 
void addRepeatedRects (const Rect &dest, const Rect &src)
 
void enableHardwareCaching (HardwareBuffer::UsagePattern usagePattern=HardwareBuffer::DynamicDraw)
 
void updateCaches ()
 
bool isHardwareCached ()
 
float * getVertexArray ()
 
float * getTextureCoordArray ()
 
int getVertexCount ()
 
int getTextureCoordCount ()
 
HardwareBuffergetHardwareVertexArray ()
 
HardwareBuffergetHardwareTextureCoordArray ()
 

Detailed Description

Definition at line 29 of file coordsbuffer.h.

Constructor & Destructor Documentation

◆ CoordsBuffer()

CoordsBuffer::CoordsBuffer ( )

Definition at line 26 of file coordsbuffer.cpp.

◆ ~CoordsBuffer()

CoordsBuffer::~CoordsBuffer ( )

Definition at line 35 of file coordsbuffer.cpp.

Member Function Documentation

◆ addBoudingRect()

void CoordsBuffer::addBoudingRect ( const Rect dest,
int  innerLineWidth 
)

Definition at line 41 of file coordsbuffer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addQuad()

void CoordsBuffer::addQuad ( const Rect dest,
const Rect src 
)
inline

Definition at line 57 of file coordsbuffer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addRect() [1/2]

void CoordsBuffer::addRect ( const Rect dest)
inline

Definition at line 48 of file coordsbuffer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addRect() [2/2]

void CoordsBuffer::addRect ( const Rect dest,
const Rect src 
)
inline

Definition at line 52 of file coordsbuffer.h.

Here is the call graph for this function:

◆ addRepeatedRects()

void CoordsBuffer::addRepeatedRects ( const Rect dest,
const Rect src 
)

Definition at line 57 of file coordsbuffer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addTriangle()

void CoordsBuffer::addTriangle ( const Point a,
const Point b,
const Point c 
)
inline

Definition at line 44 of file coordsbuffer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addUpsideDownQuad()

void CoordsBuffer::addUpsideDownQuad ( const Rect dest,
const Rect src 
)
inline

Definition at line 62 of file coordsbuffer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void CoordsBuffer::clear ( )
inline

Definition at line 38 of file coordsbuffer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enableHardwareCaching()

void CoordsBuffer::enableHardwareCaching ( HardwareBuffer::UsagePattern  usagePattern = HardwareBuffer::DynamicDraw)

Definition at line 86 of file coordsbuffer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getHardwareTextureCoordArray()

HardwareBuffer* CoordsBuffer::getHardwareTextureCoordArray ( )
inline

Definition at line 81 of file coordsbuffer.h.

Here is the caller graph for this function:

◆ getHardwareVertexArray()

HardwareBuffer* CoordsBuffer::getHardwareVertexArray ( )
inline

Definition at line 80 of file coordsbuffer.h.

Here is the caller graph for this function:

◆ getTextureCoordArray()

float* CoordsBuffer::getTextureCoordArray ( )
inline

Definition at line 76 of file coordsbuffer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTextureCoordCount()

int CoordsBuffer::getTextureCoordCount ( )
inline

Definition at line 78 of file coordsbuffer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getVertexArray()

float* CoordsBuffer::getVertexArray ( )
inline

Definition at line 75 of file coordsbuffer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getVertexCount()

int CoordsBuffer::getVertexCount ( )
inline

Definition at line 77 of file coordsbuffer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isHardwareCached()

bool CoordsBuffer::isHardwareCached ( )
inline

Definition at line 73 of file coordsbuffer.h.

Here is the caller graph for this function:

◆ updateCaches()

void CoordsBuffer::updateCaches ( )

Definition at line 96 of file coordsbuffer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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