UFO: Alien Invasion
Loading...
Searching...
No Matches
ui_sprite.h
Go to the documentation of this file.
1
4
5/*
6Copyright (C) 2002-2025 UFO: Alien Invasion.
7
8This program is free software; you can redistribute it and/or
9modify it under the terms of the GNU General Public License
10as published by the Free Software Foundation; either version 2
11of the License, or (at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
17See the GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23*/
24
25#pragma once
26
27#define UI_MAX_SPRITES 512
28
40
56
57extern const value_t ui_spriteProperties[];
58
60uiSprite_t* UI_AllocStaticSprite(const char* name) __attribute__ ((warn_unused_result));
61void UI_DrawSpriteInBox(bool flip, const uiSprite_t* icon, uiSpriteStatus_t status, int posX, int posY, int sizeX, int sizeY);
#define __attribute__(x)
Definition cxx.h:37
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition r_gl.h:110
#define MAX_VAR
Definition shared.h:36
bool tiled_popup
Definition ui_sprite.h:49
bool blend
Definition ui_sprite.h:45
char name[MAX_VAR]
Definition ui_sprite.h:42
bool pack64
Definition ui_sprite.h:46
bool tiled_17_1_3
Definition ui_sprite.h:47
char * image[SPRITE_STATUS_MAX]
Definition ui_sprite.h:53
vec2_t pos[SPRITE_STATUS_MAX]
Definition ui_sprite.h:54
vec4_t color[SPRITE_STATUS_MAX]
Definition ui_sprite.h:52
vec2_t size
Definition ui_sprite.h:43
bool single
Definition ui_sprite.h:44
bool tiled_25_1_3
Definition ui_sprite.h:48
vec_t vec4_t[4]
Definition ufotypes.h:40
vec_t vec2_t[2]
Definition ufotypes.h:38
const value_t ui_spriteProperties[]
Definition ui_sprite.cpp:31
void UI_DrawSpriteInBox(bool flip, const uiSprite_t *icon, uiSpriteStatus_t status, int posX, int posY, int sizeX, int sizeY)
uiSpriteStatus_t
Definition ui_sprite.h:32
@ SPRITE_STATUS_MAX
Definition ui_sprite.h:38
@ SPRITE_STATUS_DISABLED
Definition ui_sprite.h:35
@ SPRITE_STATUS_HOVER
Definition ui_sprite.h:34
@ SPRITE_STATUS_CLICKED
Definition ui_sprite.h:36
@ SPRITE_STATUS_NORMAL
Definition ui_sprite.h:33
uiSprite_t * UI_AllocStaticSprite(const char *name) __attribute__((warn_unused_result))
Allocate an sprite to the UI static memory.
uiSprite_t * UI_GetSpriteByName(const char *name)
Return an sprite by is name.