Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Types | Public Member Functions | Protected Attributes | List of all members
LxS::CoreGraphics::Circle Class Reference

circle - a generalized cut out section of a circle More...

#include <circle.hpp>

Inheritance diagram for LxS::CoreGraphics::Circle:
Inheritance graph
Collaboration diagram for LxS::CoreGraphics::Circle:
Collaboration graph

Public Types

enum  Rendermode { ForReal, ForCoords3D, ForCoordsGame }
 purpose of rendering. ForReal is "to display", ForCoords3D is "to determine where user has clicked" More...
 

Public Member Functions

void SetFraction (float f)
 which fraction of circle will be drawn; by default entire circle=1 (and thus half circle = 0.5)
 
float GetFraction ()
 currently configured fraction
 
void SetRadius (float r1, float r2)
 external and internal radius; if internal is 0 and external is nonzero, full circle will be drawn
 
void SetCenter (float x, float y, float z=0)
 center of the circle
 
void SetAxis (float x, float y, float z)
 axis of the circle (by default 0,0,-1)
 
void Initialize ()
 initialize the circle
 
void SetColor1 (float r, float g, float b, float a)
 color of first fraction;
 
void SetColor2 (float r, float g, float b, float a)
 color of first fraction;
 
void Render (Rendermode mode)
 render a circle
 
void Animate (float dt)
 move contents dt=delta time in seconds since last call to animate;
 
void UnloadResources ()
 free up consumed resources while (possibly temporarily) object is not critical
 
unsigned long GetFacesCount ()
 all 3D faces
 
unsigned long GetTexelsCount ()
 sum of dimensionsxdepths of all textures
 
float GetInitializedPercentage ()
 0= uninitialized; 100=ready; other? for progress bars
 
virtual void RefreshAssets ()
 To facilitate refreshing app after switching OpenGL Context (as in Android lifecycle)
 

Protected Attributes

float initialized_percentage
 0-100; 0- just constructed; 100 - redy to render; 0-100 - for progressbar
 

Detailed Description

circle - a generalized cut out section of a circle

Member Enumeration Documentation

purpose of rendering. ForReal is "to display", ForCoords3D is "to determine where user has clicked"

Enumerator
ForReal 

proper rendering for display

ForCoords3D 

rendering for coordinate detection

ForCoordsGame 

for detection of ingame coordinate system - unused


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