Latest compatible version of Classicube from the original GitHub repository (https://github.com/ClassiCube/ClassiCube) that can be compiled on Classicube for PowerMac PPC running Mac OS X 10.4.

This commit is contained in:
Andrei Alexandru
2025-12-17 13:17:57 +02:00
commit c71492f846
1248 changed files with 422858 additions and 0 deletions

26
third_party/gldc/gldc.h vendored Normal file
View File

@@ -0,0 +1,26 @@
#ifndef PRIVATE_H
#define PRIVATE_H
#include <stdint.h>
#define GLDC_FORCE_INLINE __attribute__((always_inline)) inline
#define GLDC_NO_INLINE __attribute__((noinline))
typedef struct {
/* Same 32 byte layout as pvr_vertex_t */
uint32_t flags;
float x, y, w;
uint32_t u, v; // really floats, but stored as uint for better load/store codegen
uint32_t bgra;
float z; // actually oargb, but repurposed since unused
} __attribute__ ((aligned (32))) Vertex;
typedef struct {
uint32_t format;
void *data;
uint16_t width;
uint16_t height;
} TextureObject;
void GLDC_NO_INLINE SubmitCommands(Vertex* v3, int n);
#endif // PRIVATE_H