[Video] Minor code clean up
This commit is contained in:
parent
d057f3b0ef
commit
60abe91ecd
|
@ -0,0 +1,17 @@
|
||||||
|
/***************************************************************************
|
||||||
|
* *
|
||||||
|
* Project64-video - A Nintendo 64 gfx plugin. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2017 Project64. All rights reserved. *
|
||||||
|
* Copyright (C) 2003-2009 Sergey 'Gonetz' Lipski *
|
||||||
|
* Copyright (C) 2002 Dave2001 *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* version 2 of the License, or (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
#include <Common/stdtypes.h>
|
||||||
|
|
|
@ -23,11 +23,13 @@ extern uint32_t frame_count; // frame counter
|
||||||
//GlideHQ support
|
//GlideHQ support
|
||||||
#include "Ext_TxFilter.h"
|
#include "Ext_TxFilter.h"
|
||||||
|
|
||||||
#define MAX_CACHE 1024*4
|
enum
|
||||||
#define MAX_TRI_CACHE 768 // this is actually # of vertices, not triangles
|
{
|
||||||
#define MAX_VTX 256
|
MAX_CACHE = 1024 * 4,
|
||||||
|
MAX_TRI_CACHE = 768, // this is actually # of vertices, not triangles
|
||||||
#define MAX_TMU 2
|
MAX_VTX = 256,
|
||||||
|
MAX_TMU = 2,
|
||||||
|
};
|
||||||
|
|
||||||
#define MAXCMD 0x100000
|
#define MAXCMD 0x100000
|
||||||
const unsigned int maxCMDMask = MAXCMD - 1;
|
const unsigned int maxCMDMask = MAXCMD - 1;
|
||||||
|
@ -131,7 +133,8 @@ typedef struct
|
||||||
} VERTEX;
|
} VERTEX;
|
||||||
|
|
||||||
// Clipping (scissors)
|
// Clipping (scissors)
|
||||||
typedef struct {
|
typedef struct
|
||||||
|
{
|
||||||
uint32_t ul_x;
|
uint32_t ul_x;
|
||||||
uint32_t ul_y;
|
uint32_t ul_y;
|
||||||
uint32_t lr_x;
|
uint32_t lr_x;
|
||||||
|
|
Loading…
Reference in New Issue