Public Member Functions | Public Attributes | Protected Attributes

ofTexture Class Reference

#include <ofTexture.h>

Inheritance diagram for ofTexture:
ofBaseDraws

List of all members.

Public Member Functions

 ofTexture ()
virtual ~ofTexture ()
 ofTexture (const ofTexture &mom)
ofTextureoperator= (const ofTexture &mom)
void allocate (int w, int h, int internalGlDataType)
void allocate (int w, int h, int internalGlDataType, bool bUseARBExtention)
void clear ()
void loadData (unsigned char *data, int w, int h, int glDataType)
void loadScreenData (int x, int y, int w, int h)
void setAnchorPercent (float xPct, float yPct)
void setAnchorPoint (int x, int y)
void resetAnchor ()
void draw (float x, float y, float w, float h)
void draw (float x, float y)
void bind ()
void unbind ()
bool bAllocated ()
ofTextureData getTextureData ()
float getHeight ()
float getWidth ()

Public Attributes

ofTextureData texData

Protected Attributes

ofPoint anchor
bool bAnchorIsPct

Constructor & Destructor Documentation

ofTexture::ofTexture (  )
ofTexture::~ofTexture (  ) [virtual]
ofTexture::ofTexture ( const ofTexture mom )

Member Function Documentation

void ofTexture::allocate ( int  w,
int  h,
int  internalGlDataType 
)
void ofTexture::allocate ( int  w,
int  h,
int  internalGlDataType,
bool  bUseARBExtention 
)
bool ofTexture::bAllocated (  )
void ofTexture::bind (  )
void ofTexture::clear (  )
void ofTexture::draw ( float  x,
float  y,
float  w,
float  h 
) [virtual]

Implements ofBaseDraws.

void ofTexture::draw ( float  x,
float  y 
) [virtual]

Implements ofBaseDraws.

float ofTexture::getHeight (  ) [virtual]

Implements ofBaseDraws.

ofTextureData ofTexture::getTextureData (  )
float ofTexture::getWidth (  ) [virtual]

Implements ofBaseDraws.

void ofTexture::loadData ( unsigned char *  data,
int  w,
int  h,
int  glDataType 
)
void ofTexture::loadScreenData ( int  x,
int  y,
int  w,
int  h 
)
ofTexture & ofTexture::operator= ( const ofTexture mom )
void ofTexture::resetAnchor (  ) [virtual]

Reimplemented from ofBaseDraws.

void ofTexture::setAnchorPercent ( float  xPct,
float  yPct 
) [virtual]

Reimplemented from ofBaseDraws.

void ofTexture::setAnchorPoint ( int  x,
int  y 
) [virtual]

Reimplemented from ofBaseDraws.

void ofTexture::unbind (  )

Member Data Documentation

bool ofTexture::bAnchorIsPct [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines