Rocket::Core::TextureLayoutRow Class Reference

#include <TextureLayoutRow.h>


Public Member Functions

int Generate (TextureLayout &layout, int width, int y)
void Allocate (byte *texture_data, int stride)
int GetHeight () const
void Unplace ()
 Resets the placed status for all of the rectangles within this row.

Detailed Description

A texture layout row is a single row of rectangles positioned vertically within a texture.

Author:
Peter

Member Function Documentation

int Rocket::Core::TextureLayoutRow::Generate ( TextureLayout layout,
int  width,
int  y 
)

Attempts to position unplaced rectangles from the layout into this row.

Parameters:
[in] layout The layout to position rectangles from.
[in] width The maximum width of this row.
[in] y The y-coordinate of this row.
Returns:
The number of placed rectangles.

void Rocket::Core::TextureLayoutRow::Allocate ( byte *  texture_data,
int  stride 
)

Assigns allocated texture data to all rectangles in this row.

Parameters:
[in] texture_data The pointer to the beginning of the texture's data.
[in] stride The stride of the texture's surface, in bytes;

int Rocket::Core::TextureLayoutRow::GetHeight (  )  const

Returns the height of the row.

Returns:
The row's height.


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