PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
pk::textData Struct Reference

Data necessary for representing the Text. More...

#include <Text.hpp>

Collaboration diagram for pk::textData:
Collaboration graph

Public Attributes

Fontd_font
 Pointer to a Font object (memory NOT managed in this class!). More...
 
Textured_texture
 Pointer to a Texture object (memory NOT managed in this class!). More...
 
SDL_Rect d_boundsRect
 SDL_Rect setting the bounding rectangle for the Text object. More...
 
const char * d_text
 The character string to render to the texture. More...
 
SDL_Color d_color
 The color set to the font of the Text string (default is white). More...
 
Uint32 d_renderMode
 The rendering mode used to render the Text (default is renderMode::blendedWrapped). More...
 
SDL_Point d_center
 An SDL_Point used to set the center of the Text object. More...
 
SDL_RendererFlip d_flip
 An SDL_RendererFlip value setting how to flip the Text (default is SDL_FLIP_NONE). More...
 
SDL_Color d_backgroundColor
 The color of the background (bounding box) of the Text. More...
 
Transform d_transform
 The raw transform data for the Text object. More...
 
int d_width
 The width of the Text object. More...
 
int d_height
 The height of the Text object. More...
 

Detailed Description

Data necessary for representing the Text.

Member Data Documentation

◆ d_backgroundColor

SDL_Color pk::textData::d_backgroundColor

The color of the background (bounding box) of the Text.

◆ d_boundsRect

SDL_Rect pk::textData::d_boundsRect

SDL_Rect setting the bounding rectangle for the Text object.

◆ d_center

SDL_Point pk::textData::d_center

An SDL_Point used to set the center of the Text object.

◆ d_color

SDL_Color pk::textData::d_color

The color set to the font of the Text string (default is white).

◆ d_flip

SDL_RendererFlip pk::textData::d_flip

An SDL_RendererFlip value setting how to flip the Text (default is SDL_FLIP_NONE).

◆ d_font

Font* pk::textData::d_font

Pointer to a Font object (memory NOT managed in this class!).

◆ d_height

int pk::textData::d_height

The height of the Text object.

◆ d_renderMode

Uint32 pk::textData::d_renderMode

The rendering mode used to render the Text (default is renderMode::blendedWrapped).

◆ d_text

const char* pk::textData::d_text

The character string to render to the texture.

◆ d_texture

Texture* pk::textData::d_texture

Pointer to a Texture object (memory NOT managed in this class!).

◆ d_transform

Transform pk::textData::d_transform

The raw transform data for the Text object.

◆ d_width

int pk::textData::d_width

The width of the Text object.


The documentation for this struct was generated from the following file: