mirror of
https://github.com/libretro/parallel-n64.git
synced 2026-11-07 12:37:50 -10:00
Create RDP_state
This commit is contained in:
1 parent
6102af5fb3
commit
acea440e9b
9 files changed
+50
-28
No files matched your search
@@ -0,0 +1,3 @@
|
||||
#include "RDP_state.h"
|
||||
|
||||
RDPInfo __RDP;
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef _RDP_STATE_H
|
||||
#define _RDP_STATE_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <boolean.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define MAXCMD 0x100000
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t w2, w3;
|
||||
uint32_t cmd_ptr;
|
||||
uint32_t cmd_cur;
|
||||
uint32_t cmd_data[MAXCMD + 32];
|
||||
} RDPInfo;
|
||||
|
||||
extern RDPInfo __RDP;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -324,6 +324,7 @@ SOURCES_CXX += $(ROOT_DIR)/Graphics/RSP/gSP_funcs.cpp \
|
||||
|
||||
SOURCES_C += $(ROOT_DIR)/Graphics/RSP/gSP_funcs_C.c \
|
||||
$(ROOT_DIR)/Graphics/RDP/gDP_funcs_C.c \
|
||||
$(ROOT_DIR)/Graphics/RDP/RDP_state.c \
|
||||
$(ROOT_DIR)/Graphics/RSP/RSP_state.c
|
||||
|
||||
ifeq ($(HAVE_GLIDE64),1)
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
#include "gSP.h"
|
||||
#include "RDP.h"
|
||||
|
||||
RDPInfo __RDP;
|
||||
|
||||
enum
|
||||
{
|
||||
gspTexRect = 0,
|
||||
|
||||
+1
-13
@@ -3,9 +3,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef MAXCMD
|
||||
#define MAXCMD 0x100000
|
||||
#endif
|
||||
#include "../../Graphics/RDP/RDP_state.h"
|
||||
|
||||
#ifndef maxCMDMask
|
||||
#define maxCMDMask (MAXCMD - 1)
|
||||
@@ -15,16 +13,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t w2, w3;
|
||||
uint32_t cmd_ptr;
|
||||
uint32_t cmd_cur;
|
||||
uint32_t cmd_data[MAXCMD + 32];
|
||||
} RDPInfo;
|
||||
|
||||
extern RDPInfo __RDP;
|
||||
|
||||
void RDP_Init(void);
|
||||
void RDP_Half_1(uint32_t _c);
|
||||
void RDP_ProcessRDPList();
|
||||
|
||||
@@ -595,6 +595,16 @@
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='GlideN64release|x64'">CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Graphics\RDP\RDP_state.c">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='GlideN64debug|Win32'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='GlideN64debug|x64'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='GlideN64release|Win32'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='GlideN64release|x64'">CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Graphics\RSP\RSP_state.c">
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">CompileAsC</CompileAs>
|
||||
<CompileAs Condition="'$(Configuration)|$(Platform)'=='GlideN64debug|Win32'">CompileAsC</CompileAs>
|
||||
|
||||
@@ -213,6 +213,9 @@
|
||||
<ClCompile Include="..\..\..\glide2gl\src\Glide64\glidemain.c">
|
||||
<Filter>Source Files\glide2gl\src\Glide64</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Graphics\RDP\RDP_state.c">
|
||||
<Filter>Source Files\Graphics\RDP</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\Graphics\RSP\RSP_state.c">
|
||||
<Filter>Source Files\Graphics\RSP</Filter>
|
||||
</ClCompile>
|
||||
|
||||
@@ -367,8 +367,6 @@ void RDP_TriShadeTxtrZ( uint32_t _w0, uint32_t _w1 )
|
||||
gln64gDPTriShadeTxtrZ(_w0, _w1);
|
||||
}
|
||||
|
||||
RDPInfo __RDP;
|
||||
|
||||
void RDP_Init()
|
||||
{
|
||||
// Initialize RDP commands to RDP_UNKNOWN
|
||||
|
||||
@@ -1,19 +1,12 @@
|
||||
#ifndef RDP_H
|
||||
#define RDP_H
|
||||
|
||||
#define MAXCMD 0x100000
|
||||
#include <stdint.h>
|
||||
|
||||
#include "../../Graphics/RDP/RDP_state.h"
|
||||
|
||||
const unsigned int maxCMDMask = MAXCMD - 1;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t w2, w3;
|
||||
uint32_t cmd_ptr;
|
||||
uint32_t cmd_cur;
|
||||
uint32_t cmd_data[MAXCMD + 32];
|
||||
} RDPInfo;
|
||||
|
||||
extern RDPInfo __RDP;
|
||||
|
||||
void RDP_Init(void);
|
||||
void RDP_Half_1(uint32_t _c);
|
||||
void RDP_ProcessRDPList(void);
|
||||
|
||||
Reference in new issue
Block a user