RetroArch
sprite.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2014-2016 - Ali Bouhlel
3  *
4  * RetroArch is free software: you can redistribute it and/or modify it under the terms
5  * of the GNU General Public License as published by the Free Software Found-
6  * ation, either version 3 of the License, or (at your option) any later version.
7  *
8  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10  * PURPOSE. See the GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License along with RetroArch.
13  * If not, see <http://www.gnu.org/licenses/>.
14  */
15 
16 #ifndef SPRITE_SHADER_H
17 #define SPRITE_SHADER_H
18 
19 #include <wiiu/shader_utils.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 typedef struct
26 {
27  struct
28  {
29  float x;
30  float y;
31  float width;
32  float height;
33  }pos;
34 
35  struct
36  {
37  float u;
38  float v;
39  float width;
40  float height;
41  }coord;
42 
45 
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif /* SPRITE_SHADER_H */
u32 color
Definition: sprite.h:43
float y
Definition: sprite.h:30
Definition: shader_utils.h:64
GLuint coord
Definition: glext.h:10418
float height
Definition: sprite.h:32
float u
Definition: sprite.h:37
float x
Definition: sprite.h:29
float v
Definition: sprite.h:38
GLint GLint GLsizei width
Definition: glext.h:6293
float width
Definition: sprite.h:31
GX2Shader sprite_shader
Definition: sprite.c:233
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
Definition: sprite.h:25
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293