mirror of
https://github.com/ScrelliCopter/NeHe-SDL_GPU.git
synced 2025-06-19 21:49:17 +10:00
c: Fix old style struct declarations
This commit is contained in:
@@ -68,7 +68,7 @@ static SDL_GPUTexture* texture = NULL;
|
|||||||
static float projection[16];
|
static float projection[16];
|
||||||
|
|
||||||
static bool lighting = false;
|
static bool lighting = false;
|
||||||
struct Light { float ambient[4], diffuse[4], position[4]; } static light =
|
static struct Light { float ambient[4], diffuse[4], position[4]; } light =
|
||||||
{
|
{
|
||||||
.ambient = { 0.5f, 0.5f, 0.5f, 1.0f },
|
.ambient = { 0.5f, 0.5f, 0.5f, 1.0f },
|
||||||
.diffuse = { 1.0f, 1.0f, 1.0f, 1.0f },
|
.diffuse = { 1.0f, 1.0f, 1.0f, 1.0f },
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ static float projection[16];
|
|||||||
|
|
||||||
static bool lighting = false;
|
static bool lighting = false;
|
||||||
static bool blending = false;
|
static bool blending = false;
|
||||||
struct Light { float ambient[4], diffuse[4], position[4]; } static light =
|
static struct Light { float ambient[4], diffuse[4], position[4]; } light =
|
||||||
{
|
{
|
||||||
.ambient = { 0.5f, 0.5f, 0.5f, 1.0f },
|
.ambient = { 0.5f, 0.5f, 0.5f, 1.0f },
|
||||||
.diffuse = { 1.0f, 1.0f, 1.0f, 1.0f },
|
.diffuse = { 1.0f, 1.0f, 1.0f, 1.0f },
|
||||||
|
|||||||
Reference in New Issue
Block a user