Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
mktest.py File Reference

Namespaces

namespace  mktest
 

Functions

 mktest.packet (type, words)
 
 mktest.string (type, s)
 
 mktest.rgb (r, g, b)
 
 mktest.xy (x, y)
 
 mktest.rgb15 (r, g, b)
 

Variables

int mktest.FRAMES = 60
 
int mktest.PKT_GP0 = 0x00
 
int mktest.PKT_GP1 = 0x01
 
int mktest.PKT_VSYNC = 0x02
 
int mktest.PKT_THROW_AWAY = 0x03
 
int mktest.PKT_READBACK = 0x04
 
int mktest.PKT_TRACE_BEGIN = 0x05
 
int mktest.PKT_GPU_VERSION = 0x06
 
int mktest.PKT_GAME_ID = 0x10
 
int mktest.PKT_VIDEO_FORMAT = 0x11
 
int mktest.PKT_COMMENT = 0x12
 
 mktest.out = bytearray(b"PSXGPUDUMPv1r1\0\0")
 
list mktest.pixels = []
 
list mktest.data = [pixels[i] | (pixels[i + 1] << 16) for i in range(0, len(pixels), 2)]
 
int mktest.cycles = 0
 
int mktest.t = f / FRAMES
 
list mktest.words = []
 
int mktest.qx = 10 + f * 4
 
 mktest.cx
 
 mktest.cy
 
 mktest.r
 
list mktest.tri = []
 
int mktest.a = 2 * math.pi * (t + i / 3)
 
 mktest.vx = int(cx + r * math.cos(a))
 
 mktest.vy = int(cy + r * math.sin(a))
 
int mktest.amp = int(20 * math.sin(2 * math.pi * t)) + 1
 
int mktest.px = 20 + int(200 * abs(math.sin(math.pi * t)))
 
int mktest.py = 70 + f