added simple demoreel and ps2 skeleton coded by claude fable 5

This commit is contained in:
aap
2026-08-09 01:39:54 +02:00
parent 92851aa1ed
commit 0a7eb48ce3
18 changed files with 1482 additions and 9 deletions
+39
View File
@@ -0,0 +1,39 @@
#ifndef DEMOREEL_H
#define DEMOREEL_H
#include <rw.h>
#include <skeleton.h>
// A demo scene. Plain function pointers and static data only;
// scene code is meant to stay compilable for PS2 (old gcc, no STL).
struct DemoScene
{
const char *name;
void (*init)(void);
void (*term)(void);
void (*update)(float dt);
void (*render)(void);
};
struct SceneGlobals
{
rw::World *world;
rw::Camera *camera;
};
extern SceneGlobals Scene;
extern float DemoTime; // seconds since scene start
// main.cpp
void LookAt(rw::Frame *frame, rw::V3d pos, rw::V3d target);
rw::RGBA HSV(float h, float s, float v, rw::uint8 alpha);
// proctex.cpp
rw::Texture *MakeGlowTexture(void);
rw::Texture *MakeGridTexture(void);
rw::Texture *MakeEnvTexture(void);
extern DemoScene TunnelScene;
extern DemoScene ParticleScene;
extern DemoScene KnotScene;
#endif