UtilityGL

A namespace that provides miscellaneous utility functions for OpenGL.

Project

DatabaseCore

Include

UtilityGL.h

Summary
A namespace that provides miscellaneous utility functions for OpenGL.
Adjusts given coordinates from the center of a tile to the specified corner.
Adjusts given coordinates from the center of a tile to the midpoint of the specified side.

Functions

cornerCoords

void MODEL_EXPORT_SPEC cornerCoords(Vector &coords,
wxInt32 corner)

Adjusts given coordinates from the center of a tile to the specified corner.

Parameters

coordsThe coordinates to adjust.  They should already be set to the center position of the tile.
cornerThe corner to adjust the coordinates to.  Must be between 0 and 5, inclusive.

sideCoords

void MODEL_EXPORT_SPEC sideCoords(Vector &coords,
float &rotation,
wxInt32 side)

Adjusts given coordinates from the center of a tile to the midpoint of the specified side.

Parameters

coordsThe coordinates to adjust.  They should already be set to the center position of the tile.
sideThe side to adjust the coordinates to.  Must be between 0 and 5, inclusive.
void MODEL_EXPORT_SPEC cornerCoords(Vector &coords,
wxInt32 corner)
Adjusts given coordinates from the center of a tile to the specified corner.
void MODEL_EXPORT_SPEC sideCoords(Vector &coords,
float &rotation,
wxInt32 side)
Adjusts given coordinates from the center of a tile to the midpoint of the specified side.
DatabaseCore provides a set of commonly used Singletons and namespaces that handle important, but mundane aspects of game management, such as available player colors, configuration options, image maniplulation, file paths, and playing sounds.