Nuclide
Software Development Kit for id Technology (BETA)
Loading...
Searching...
No Matches
InterfaceSpriteSheet.h
1/*
2 * Copyright (c) 2023-2024 Marco Cawthorne <marco@icculus.org>
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17typedef struct
18{
19 string m_strImage;
20 vector m_vecSize;
24
25class
27{
28 nonvirtual int Load(string spriteName);
29 nonvirtual void Initialize(void);
30 nonvirtual void Draw_RGBA(int spriteName, vector spritePos, vector spriteColor, float spriteAlpha, bool isAdditive);
31 nonvirtual void DrawTop_RGBA(int spriteName, vector spritePos, float percentageDrawn, vector spriteColor, float spriteAlpha, bool isAdditive);
32 nonvirtual void DrawLeft_RGBA(int spriteName, vector spritePos, float percentageDrawn, vector spriteColor, float spriteAlpha, bool isAdditive);
33 nonvirtual void DrawRight_RGBA(int spriteName, vector spritePos, float percentageDrawn, vector spriteColor, float spriteAlpha, bool isAdditive);
34 nonvirtual void DrawBottom_RGBA(int spriteName, vector spritePos, float percentageDrawn, vector spriteColor, float spriteAlpha, bool isAdditive);
35 nonvirtual void Draw(int spriteName, vector spritePos, bool isAdditive);
36 nonvirtual void Draw_A(int spriteName, vector spritePos, float spriteAlpha, bool isAdditive);
37 nonvirtual void Draw_RGB(int spriteName, vector spritePos, vector spriteColor, bool isAdditive);
38 nonvirtual void DrawCrosshair(int spriteName);
39 nonvirtual float GetWidth(int spriteName);
40 nonvirtual float GetHeight(int spriteName);
41 nonvirtual vector GetSize(int spriteName);
42};
Definition InterfaceSpriteSheet.h:27
Definition InterfaceSpriteSheet.h:18
vector m_vecSize
Definition InterfaceSpriteSheet.h:20
vector m_vecCanvasSize
Definition InterfaceSpriteSheet.h:21
vector m_vecCanvasPos
Definition InterfaceSpriteSheet.h:22
string m_strImage
Definition InterfaceSpriteSheet.h:19