Logo Search packages:      
Sourcecode: performous version File versions  Download package

Surface Class Reference

#include <surface.hh>

List of all members.

Detailed Description

High level surface/image wrapper. Supports non-power-of-two dimensions, but does not support texturing, so keep tex within [0, 1].

Definition at line 125 of file surface.hh.

Public Member Functions

void draw () const
void load (unsigned int width, unsigned int height, pix::Format format, unsigned char const *buffer, float ar=0.0f)
 Surface (std::string const &filename, bool autocrop=false)
 Surface (cairo_surface_t *_surf)

Public Attributes

Dimensions dimensions
TexCoords tex

Private Attributes

unsigned int m_height
unsigned int m_width

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

Generated by  Doxygen 1.6.0   Back to index