eclasslib.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <list>
#include <map>
#include <vector>
#include "ieclass.h"
#include "irender.h"
#include "string/string.h"
Include dependency graph for eclasslib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  ListAttributeType
class  EntityClassAttribute
class  EntityClass

Defines

#define INCLUDED_ECLASSLIB_H

Typedefs

typedef Vector3 Colour3
typedef std::pair< std::string,
EntityClassAttribute
EntityClassAttributePair
typedef std::list
< EntityClassAttributePair
EntityClassAttributes
typedef std::list< std::stringStringList

Functions

const char * EntityClassAttributePair_getName (const EntityClassAttributePair &attributePair)
const char * EntityClassAttributePair_getDescription (const EntityClassAttributePair &attributePair)
const char * EntityClass_valueForKey (const EntityClass &entityClass, const std::string &key)
EntityClassAttributePairEntityClass_insertAttribute (EntityClass &entityClass, const char *key, const EntityClassAttribute &attribute=EntityClassAttribute())
void buffer_write_colour_fill (char buffer[128], const Colour3 &colour)
void buffer_write_colour_wire (char buffer[128], const Colour3 &colour)
void buffer_write_colour_blend (char buffer[128], const Colour3 &colour)
Shader * colour_capture_state_fill (const Colour3 &colour)
void colour_release_state_fill (const Colour3 &colour)
Shader * colour_capture_state_wire (const Colour3 &colour)
void colour_release_state_wire (const Colour3 &colour)
Shader * colour_capture_state_blend (const Colour3 &colour)
void colour_release_state_blend (const Colour3 &colour)
void eclass_capture_state (EntityClass *eclass)
void eclass_release_state (EntityClass *eclass)
EntityClassEclass_Alloc ()
void Eclass_Free (EntityClass *e)
bool classname_equal (const std::string &classname, const std::string &other)
EntityClassEClass_Create (const std::string &name, const Vector3 &colour, const std::string &comments)
EntityClassEClass_Create_FixedSize (const std::string &name, const Vector3 &colour, const Vector3 &mins, const Vector3 &maxs, const std::string &comments)
EntityClassEntityClass_Create_Default (const std::string &name, bool has_brushes)

Variables

const Vector3 smallbox [2] = { Vector3(-8, -8, -8), Vector3(8, 8, 8), }

Define Documentation

#define INCLUDED_ECLASSLIB_H

Definition at line 23 of file eclasslib.h.


Typedef Documentation

typedef Vector3 Colour3

Definition at line 36 of file eclasslib.h.

Definition at line 92 of file eclasslib.h.

Definition at line 93 of file eclasslib.h.

typedef std::list<std::string> StringList

Definition at line 94 of file eclasslib.h.


Function Documentation

void buffer_write_colour_blend ( char  buffer[128],
const Colour3 colour 
) [inline]

Definition at line 212 of file eclasslib.h.

Referenced by colour_capture_state_blend(), and colour_release_state_blend().

void buffer_write_colour_fill ( char  buffer[128],
const Colour3 colour 
) [inline]

Definition at line 202 of file eclasslib.h.

Referenced by colour_capture_state_fill(), and colour_release_state_fill().

void buffer_write_colour_wire ( char  buffer[128],
const Colour3 colour 
) [inline]

Definition at line 207 of file eclasslib.h.

Referenced by colour_capture_state_wire(), and colour_release_state_wire().

bool classname_equal ( const std::string classname,
const std::string other 
) [inline]

Definition at line 298 of file eclasslib.h.

Shader* colour_capture_state_blend ( const Colour3 colour  )  [inline]

Definition at line 245 of file eclasslib.h.

References buffer_write_colour_blend().

Referenced by eclass_capture_state().

Shader* colour_capture_state_fill ( const Colour3 colour  )  [inline]

Definition at line 217 of file eclasslib.h.

References buffer_write_colour_fill().

Referenced by Colour::capture_state(), and eclass_capture_state().

Shader* colour_capture_state_wire ( const Colour3 colour  )  [inline]

Definition at line 231 of file eclasslib.h.

References buffer_write_colour_wire().

Referenced by eclass_capture_state().

void colour_release_state_blend ( const Colour3 colour  )  [inline]

Definition at line 252 of file eclasslib.h.

References buffer_write_colour_blend().

Referenced by eclass_release_state().

void colour_release_state_fill ( const Colour3 colour  )  [inline]

Definition at line 224 of file eclasslib.h.

References buffer_write_colour_fill().

Referenced by eclass_release_state(), and Colour::release_state().

void colour_release_state_wire ( const Colour3 colour  )  [inline]

Definition at line 238 of file eclasslib.h.

References buffer_write_colour_wire().

Referenced by eclass_release_state().

EntityClass* Eclass_Alloc (  )  [inline]
void eclass_capture_state ( EntityClass eclass  )  [inline]
EntityClass* EClass_Create ( const std::string name,
const Vector3 colour,
const std::string comments 
) [inline]
EntityClass* EClass_Create_FixedSize ( const std::string name,
const Vector3 colour,
const Vector3 mins,
const Vector3 maxs,
const std::string comments 
) [inline]
void Eclass_Free ( EntityClass e  )  [inline]

Definition at line 291 of file eclasslib.h.

References eclass_release_state().

Referenced by EClass_Create(), and EClass_Create_FixedSize().

void eclass_release_state ( EntityClass eclass  )  [inline]
EntityClass* EntityClass_Create_Default ( const std::string name,
bool  has_brushes 
) [inline]

Definition at line 341 of file eclasslib.h.

References EClass_Create(), EClass_Create_FixedSize(), and f.

EntityClassAttributePair& EntityClass_insertAttribute ( EntityClass entityClass,
const char *  key,
const EntityClassAttribute attribute = EntityClassAttribute() 
) [inline]

Definition at line 195 of file eclasslib.h.

References EntityClass::m_attributes.

const char* EntityClass_valueForKey ( const EntityClass entityClass,
const std::string key 
) [inline]

Definition at line 184 of file eclasslib.h.

References i, and EntityClass::m_attributes.

Referenced by EntityKeyValues::getKeyValue(), and EntityKeyValues::insert().

const char* EntityClassAttributePair_getDescription ( const EntityClassAttributePair attributePair  )  [inline]

Definition at line 104 of file eclasslib.h.

References EntityClassAttributePair_getName().

const char* EntityClassAttributePair_getName ( const EntityClassAttributePair attributePair  )  [inline]

Definition at line 96 of file eclasslib.h.

Referenced by EntityClassAttributePair_getDescription().


Variable Documentation

const Vector3 smallbox[2] = { Vector3(-8, -8, -8), Vector3(8, 8, 8), }

Definition at line 339 of file eclasslib.h.


Generated by  doxygen 1.6.2