mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-24 20:45:05 +00:00
clean: remove unused macros
This commit is contained in:
@@ -37,7 +37,6 @@ typedef struct VERT {
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
#define TORUS_SLICES 24 // numc
|
||||
#define TORUS_ROWS 24 // numt
|
||||
|
||||
@@ -45,7 +45,6 @@ typedef struct Vx_v32f {
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
#define TORUS_SLICES 48 // numc
|
||||
#define TORUS_ROWS 48 // numt
|
||||
|
||||
@@ -36,7 +36,6 @@ int SetupCallbacks();
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
unsigned int colors[8] =
|
||||
{
|
||||
|
||||
@@ -36,7 +36,6 @@ extern unsigned char env0_start[];
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
#define TORUS_SLICES 48 // numc
|
||||
#define TORUS_ROWS 48 // numt
|
||||
|
||||
@@ -96,7 +96,6 @@ static const unsigned int __attribute__((aligned(16))) texture[256] = {
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
typedef struct {
|
||||
float s, t;
|
||||
|
||||
@@ -48,7 +48,6 @@ int SetupCallbacks();
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
#define ROWS (64)
|
||||
#define COLS (64)
|
||||
|
||||
@@ -67,7 +67,6 @@ void genSkinnedMonsterCylinder( unsigned slices, unsigned rows, float length, fl
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
#define HIERARCHY_SIZE (WEIGHTS_PER_VERTEX)
|
||||
|
||||
|
||||
@@ -106,7 +106,6 @@ int SetupCallbacks();
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
||||
@@ -126,7 +126,6 @@ void genTorus( unsigned slices, unsigned rows, float radius, float thickness,
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
void drawCube( Texture* texture, int val )
|
||||
{
|
||||
|
||||
@@ -78,7 +78,6 @@ void genTorus( unsigned slices, unsigned rows, float radius, float thickness,
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
typedef struct Geometry
|
||||
{
|
||||
|
||||
@@ -123,7 +123,6 @@ void myFinishHandler(int id);
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
#define NUM_SLICES (128)
|
||||
#define NUM_ROWS (128*4)
|
||||
|
||||
@@ -60,7 +60,6 @@ void genSkinnedCylinder( unsigned slices, unsigned rows, float length, float rad
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
#define HIERARCHY_SIZE (WEIGHTS_PER_VERTEX)
|
||||
|
||||
|
||||
@@ -120,7 +120,6 @@ extern unsigned char logo_start[];
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
unsigned char *logo_temp2;
|
||||
|
||||
|
||||
@@ -72,7 +72,6 @@ static int fontwidthtab[128] = {
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4)
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2)
|
||||
|
||||
int exit_callback(int arg1, int arg2, void *common) {
|
||||
sceKernelExitGame();
|
||||
|
||||
@@ -55,7 +55,6 @@ int SetupCallbacks();
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
void buildIndexedTorus() {
|
||||
const float thickness = TORUS_ORADIUS - TORUS_IRADIUS;
|
||||
|
||||
@@ -37,7 +37,6 @@ PSP_HEAP_SIZE_KB(20480);
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
#define DATABUFFLEN 0x20
|
||||
|
||||
|
||||
@@ -123,7 +123,6 @@ struct Vertex __attribute__((aligned(16))) vertices[12*3] =
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4)
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2)
|
||||
|
||||
static void setupGu()
|
||||
{
|
||||
|
||||
@@ -121,7 +121,6 @@ struct Vertex __attribute__((aligned(16))) vertices[12*3] =
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4) /* change this if you change to another screenmode */
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2) /* zbuffer seems to be 16-bit? */
|
||||
|
||||
static void SetupGu()
|
||||
{
|
||||
|
||||
@@ -128,7 +128,6 @@ struct Vertex __attribute__((aligned(16))) vertices[12*3] =
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4)
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2)
|
||||
|
||||
static void setupGu()
|
||||
{
|
||||
|
||||
@@ -44,7 +44,6 @@ static unsigned int __attribute__((aligned(16))) list[262144];
|
||||
#define SCR_HEIGHT (272)
|
||||
#define PIXEL_SIZE (4)
|
||||
#define FRAME_SIZE (BUF_WIDTH * SCR_HEIGHT * PIXEL_SIZE)
|
||||
#define ZBUF_SIZE (BUF_WIDTH SCR_HEIGHT * 2)
|
||||
|
||||
#define NUM_INPUT_FIELDS (3)
|
||||
#define TEXT_LENGTH (128)
|
||||
|
||||
Reference in New Issue
Block a user