First, i have seen these structre in KOS :
Code: Select all
/** \brief Generic PVR vertex type.
The PVR chip itself supports many more vertex types, but this is the main
one that can be used with both textured and non-textured polygons, and is
fairly fast.
\headerfile dc/pvr.h
*/
typedef struct {
uint32 flags; /**< \brief TA command (vertex flags) */
float x; /**< \brief X coordinate */
float y; /**< \brief Y coordinate */
float z; /**< \brief Z coordinate */
float u; /**< \brief Texture U coordinate */
float v; /**< \brief Texture V coordinate */
uint32 argb; /**< \brief Vertex color */
uint32 oargb; /**< \brief Vertex offset color */
} pvr_vertex_t;
I am wondering how z value could be used, especially what is the range of values and what it means.
I have also the same question about oargb what is it useful for ?
And to finish, i have not found a way to clear the screen after displaying textures. The only function i have seen is pvr_set_bg_color(0, 0, 0) but it does not clear anything.
Thanks a lot for your help.