Sort TILE primitives into GsOT?
Posted: June 22nd, 2013, 5:42 pm
Hi guys. I'm working on a Tetris implementation as a bit of a learning experiment, and I'm developing a 'strafield' intro sequence now (which is mostly finished, but I want to rewrite it).
Rubbish static preview (looks a bit cooler when animated):

Anyway, my question is:
I need to sort an array of TILE_1s into my GsOT, but there are no GsSort* methods for TILE primitives (or even standard primitives). I'm drawing them directly with DrawPrim right now, but that's going to get ambiguous real quick.
Is it possible to place the TILE_1s into my GsOT_TAG array manually? It's probably possible to use AddPrim with a u_long*, but that's not ideal. It'd be great to be able to sort them automagically with some kind of method that acts upon a GsOT.
Thanks for any help!
Rubbish static preview (looks a bit cooler when animated):

Anyway, my question is:
I need to sort an array of TILE_1s into my GsOT, but there are no GsSort* methods for TILE primitives (or even standard primitives). I'm drawing them directly with DrawPrim right now, but that's going to get ambiguous real quick.
Is it possible to place the TILE_1s into my GsOT_TAG array manually? It's probably possible to use AddPrim with a u_long*, but that's not ideal. It'd be great to be able to sort them automagically with some kind of method that acts upon a GsOT.
Thanks for any help!