mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Environment_DrawSkyboxStarsImpl
This commit is contained in:
@@ -13,6 +13,12 @@
|
||||
#define ALIGNED(x) __attribute__ ((aligned (x)))
|
||||
#endif
|
||||
|
||||
#ifdef __sgi /* IDO compiler */
|
||||
#define UNALIGNED __unaligned
|
||||
#else
|
||||
#define UNALIGNED
|
||||
#endif
|
||||
|
||||
#ifdef __sgi /* IDO compiler */
|
||||
#define ALIGNOF(x) __builtin_alignof(x)
|
||||
#elif (__STDC_VERSION__ >= 201112L) /* C11 */
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
#ifndef _COLOR_H_
|
||||
#define _COLOR_H_
|
||||
#ifndef COLOR_H
|
||||
#define COLOR_H
|
||||
|
||||
#include "PR/ultratypes.h"
|
||||
|
||||
|
||||
@@ -98,15 +98,6 @@ f64 func_80086D6C(f64 param_1);
|
||||
s32 func_80086D8C(f32 param_1);
|
||||
s32 func_80086DAC(f64 param_1);
|
||||
|
||||
u32 Rand_Next(void);
|
||||
void Rand_Seed(u32 seed);
|
||||
f32 Rand_ZeroOne(void);
|
||||
f32 Rand_Centered(void);
|
||||
void Rand_Seed_Variable(u32* rndNum, u32 seed);
|
||||
u32 Rand_Next_Variable(u32* rndNum);
|
||||
f32 Rand_ZeroOne_Variable(u32* rndNum);
|
||||
f32 Rand_Centered_Variable(u32* rndNum);
|
||||
|
||||
s32 PrintUtils_VPrintf(PrintCallback* pfn, const char* fmt, va_list args);
|
||||
s32 PrintUtils_Printf(PrintCallback* pfn, const char* fmt, ...);
|
||||
void Sleep_Cycles(OSTime time);
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef RAND_H
|
||||
#define RAND_H
|
||||
|
||||
#include "PR/ultratypes.h"
|
||||
|
||||
//! These values are recommended by the algorithms book *Numerical Recipes in C. The Art of Scientific Computing*, 2nd
|
||||
//! Edition, 1992, ISBN 0-521-43108-5. (p. 284):
|
||||
//! > This is about as good as any 32-bit linear congruential generator, entirely adequate for many uses.
|
||||
#define RAND_MULTIPLIER 1664525
|
||||
#define RAND_INCREMENT 1013904223
|
||||
|
||||
u32 Rand_Next(void);
|
||||
void Rand_Seed(u32 seed);
|
||||
f32 Rand_ZeroOne(void);
|
||||
f32 Rand_Centered(void);
|
||||
void Rand_Seed_Variable(u32* rndNum, u32 seed);
|
||||
u32 Rand_Next_Variable(u32* rndNum);
|
||||
f32 Rand_ZeroOne_Variable(u32* rndNum);
|
||||
f32 Rand_Centered_Variable(u32* rndNum);
|
||||
|
||||
extern u32 gRandFloat;
|
||||
|
||||
#endif
|
||||
@@ -32,7 +32,6 @@ extern u8* sYaz0MaxPtr;
|
||||
extern void* gYaz0DecompressDstEnd;
|
||||
|
||||
// extern UNK_TYPE4 D_8009CD10;
|
||||
extern u32 gRandFloat;
|
||||
// extern UNK_TYPE4 sArenaLockMsg;
|
||||
|
||||
extern DmaEntry dmadata[1568];
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "gfx.h"
|
||||
#include "gfxprint.h"
|
||||
#include "padutils.h"
|
||||
#include "rand.h"
|
||||
#include "sys_matrix.h"
|
||||
#include "tha.h"
|
||||
#include "thga.h"
|
||||
|
||||
Reference in New Issue
Block a user