Exemple #1
0
        /*
        ** R_GetModelByHandle
        */
        model_t *R_GetModelByHandle(qhandle_t index)
        {
            model_t *mod;

            // out of range gets the defualt model
            if (index < 1 || index >= tr.numModels)
            {
                return(tr.models[0]);
            }

            mod = tr.models[index];

            return(mod);
        }
Exemple #2
0
 /*
  * =====================
  * RE_AddPolyToScene
  *
  * =====================
  */
 void RE_AddPolyToScene(qhandle_t hShader, int numVerts, const polyVert_t *verts, int numPolys)