#include <TextureLayoutTexture.h>

Public Member Functions | |
| const Vector2i & | GetDimensions () const |
| int | Generate (TextureLayout &layout, int maximum_dimensions) |
| byte * | AllocateTexture () |
| const Vector2i & Rocket::Core::TextureLayoutTexture::GetDimensions | ( | ) | const |
Returns the texture's dimensions. This is only valid after the texture has been generated.
| int Rocket::Core::TextureLayoutTexture::Generate | ( | TextureLayout & | layout, | |
| int | maximum_dimensions | |||
| ) |
Attempts to position unplaced rectangles from the layout into this texture. The size of this texture will be determined by its contents.
| [in] | layout | The layout to position rectangles from. |
| [in] | maximum_dimensions | The maximum dimensions of this texture. If this is not big enough to place all the rectangles, then as many will be placed as possible. |
| byte * Rocket::Core::TextureLayoutTexture::AllocateTexture | ( | ) |
Allocates the texture.