35 #ifndef __JO_VDP1_COMMAND_PIPELINE_H__
36 # define __JO_VDP1_COMMAND_PIPELINE_H__
38 #if !JO_COMPILE_USING_SGL
43 extern unsigned int __jo_vdp1_command_index;
46 typedef enum __attribute__ ((__packed__))
48 DrawNormalSprite = 0x0,
49 DrawScaledSprite = 0x1,
50 DrawDistortedSprite = 0x2,
54 SetUserClipping = 0x8,
55 SetSystemClipping = 0x9,
56 SetLocalCoordinates = 0xA,
58 __force_unsigned_short__ = 0xFFFFU
60 jo_vdp1_command_control;
65 jo_vdp1_command_control ctrl;
80 short jo_engine_reserved;
83 static __jo_force_inline jo_vdp1_command *jo_vdp1_get_command_entry_from_link(
unsigned short link)
87 static __jo_force_inline unsigned short jo_vdp1_command_index_to_link(
int command_index)
91 static __jo_force_inline jo_vdp1_command *jo_vdp1_get_command_entry(
int command_index)
95 static __jo_force_inline unsigned short jo_vdp1_command_to_link(jo_vdp1_command *command)
97 return (command ? (((
unsigned int)command - (
unsigned int)
JO_VDP1_VRAM) / 0x8) : 0);
100 jo_vdp1_command* jo_vdp1_create_command(
void);