I'm trying to render some PT polys, using the code below, but nothing gets displayed.
Code: Select all
pvr_list_begin(PVR_LIST_PT_POLY);
{
pvr_vertex_t *l_current_vert = &m_kos_vertices_pt[0];
for (ui i = 0; i < m_faces_pt_count; i++)
{
pvr_poly_cxt_t l_context;
pvr_poly_hdr_t l_header;
DC_POLY *l_current_face = &m_dc_poly_pt[i];
pvr_poly_cxt_txr(&l_context, PVR_LIST_PT_POLY, PVR_TXRFMT_ARGB4444 | PVR_TXRFMT_TWIDDLED | PVR_TXRFMT_VQ_ENABLE, l_current_face->m_width, l_current_face->m_height, l_current_face->m_textid, PVR_FILTER_BILINEAR);
pvr_poly_compile(&l_header, &l_context);
pvr_prim(&l_header, sizeof(l_header));
ui l_num_vertex = l_current_face->m_num_vertex;
for (ui j = 0; j < l_num_vertex; j++)
{
pvr_prim(l_current_vert, sizeof(pvr_vertex_t));
l_current_vert++;
}
}
}pvr_list_finish();
I initiliaze the PVR like so:
Code: Select all
pvr_init_params_t pvr_params = { { PVR_BINSIZE_16, PVR_BINSIZE_0, PVR_BINSIZE_16, PVR_BINSIZE_0, PVR_BINSIZE_16 }, 512 * 1024 };
pvr_init(&pvr_params);
Code: Select all
vqenc -v -t -q -k -a
Any idea what I might be doing wrong?
Thanks!