naev 0.12.5
slots.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "opengl_tex.h"
7
8/* Load/exit. */
9int sp_load( void );
10void sp_cleanup( void );
11
12/* Stuff. */
13unsigned int sp_get( const char *name );
14const char *sp_display( unsigned int sp );
15const char *sp_description( unsigned int sp );
16int sp_visible( unsigned int spid );
17int sp_required( unsigned int spid );
18int sp_exclusive( unsigned int spid );
19int sp_locked( unsigned int spid );
20const glTexture *sp_icon( unsigned int spid );
int sp_locked(unsigned int spid)
Gets whether or not a slot property is locked.
Definition slots.c:205
unsigned int sp_get(const char *name)
Gets the id of a slot property.
Definition slots.c:139
const char * sp_description(unsigned int spid)
Gets the description of a slot property (in English).
Definition slots.c:175
void sp_cleanup(void)
Cleans up after the slot properties.
Definition slots.c:120
int sp_load(void)
Initializes the slot properties.
Definition slots.c:46
const glTexture * sp_icon(unsigned int spid)
Gets the icon associated with the slot.
Definition slots.c:225
const char * sp_display(unsigned int spid)
Gets the display name of a slot property (in English).
Definition slots.c:165
int sp_required(unsigned int spid)
Gets whether or not a slot property is required.
Definition slots.c:185
int sp_exclusive(unsigned int spid)
Gets whether or not a slot property is exclusive.
Definition slots.c:195
int sp_visible(unsigned int spid)
Whether or not the slot should be visible even if locked.
Definition slots.c:215
Abstraction for rendering sprite sheets.
Definition opengl_tex.h:43