[Fix] Few corrections in documentation.

This commit is contained in:
Allanis 2013-10-22 18:54:30 +01:00
parent 6764a1c424
commit 435be644cf
2 changed files with 22 additions and 10 deletions

View File

@ -65,12 +65,16 @@ typedef struct glTexture_ {
char* name; /**< Name of graphic. */
/* Dimensions */
double w, h; /**< Real size of the image (excluding POT buffer). */
double rw, rh; /**< Size of POT surface. */
double w; /**< Real width of the image. */
double h; /**< Real height of the image. */
double rw; /**< Padded POT width of the image. */
double rh; /**< Padded POT height of the image. */
/* Sprites */
double sx, sy; /**< Number of sprites on x and y axes. */
double sw, sh; /**< Size of each sprite. */
double sx; /**< Number of sprites on the x axis. */
double sy; /**< Number of sprites on the y axis. */
double sw; /**< Width of the sprite. */
double sh; /**< Height of the sprite. */
/* Data */
GLuint texture; /**< The opengl texture itself. */

View File

@ -100,8 +100,10 @@ extern StarSystem* systems_stack;
* @brief Represents the player's radar.
*/
typedef struct Radar_ {
double x,y; /**< Position. */
double w,h; /**< Dimensions. */
double x; /**< X position. */
double y; /**< Y position. */
double w; /**< Width. */
double h; /**< Height. */
RadarShape shape; /**< Shape. */
double res; /**< Resolution. */
} Radar;
@ -118,8 +120,10 @@ typedef struct Radar_ {
* @brief Represents a rectangle.
*/
typedef struct Rect_ {
double x,y;
double w,h;
double x; /**< X position. */
double y; /**< Y position. */
double w; /**< Width. */
double h; /**< Height. */
} Rect;
/**
@ -134,9 +138,13 @@ typedef struct GUI_ {
Radar radar; /**< The radar. */
Rect nav; /**< Navigation computer. */
Rect shield, armour, energy; /**< Health bars. */
Rect shield; /**< Shield bar. */
Rect armour; /**< Armour bar. */
Rect energy; /**< Energy bar. */
Rect weapon; /**< Weapon targeting system. */
Rect target_health, target_name, target_faction; /**< Target stuff. */
Rect target_health; /**< Target health. */
Rect target_name; /**< Name of the target. */
Rect target_faction; /**< Faction of the target. */
Rect misc; /**< Misc stuff: credits, cargo.. */
Rect msg; /**< Where messages go. */