2023-02-27 05:45:29 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "xash3d_types.h"
|
|
|
|
|
2023-02-27 19:37:03 +01:00
|
|
|
typedef struct model_s model_t;
|
|
|
|
|
2023-02-27 18:20:13 +01:00
|
|
|
void TriRenderMode( int mode );
|
|
|
|
void TriSetTexture( int texture_index );
|
2023-02-27 19:37:03 +01:00
|
|
|
int TriSpriteTexture( model_t *pSpriteModel, int frame );
|
2023-02-27 18:20:13 +01:00
|
|
|
|
2023-02-27 05:45:29 +01:00
|
|
|
void TriBegin( int mode );
|
|
|
|
|
|
|
|
void TriTexCoord2f( float u, float v );
|
|
|
|
void TriColor4f( float r, float g, float b, float a );
|
2023-02-27 20:00:34 +01:00
|
|
|
void TriColor4ub_( byte r, byte g, byte b, byte a ); // FIXME consolidate with vk_renderstate
|
2023-02-27 05:45:29 +01:00
|
|
|
|
2023-06-06 18:29:05 +02:00
|
|
|
void TriNormal3fv( const float *v );
|
|
|
|
void TriNormal3f( float x, float y, float z );
|
|
|
|
|
2023-02-27 05:45:29 +01:00
|
|
|
// Emits next vertex
|
|
|
|
void TriVertex3fv( const float *v );
|
|
|
|
void TriVertex3f( float x, float y, float z );
|
|
|
|
|
|
|
|
void TriEnd( void );
|
2023-02-27 18:49:56 +01:00
|
|
|
void TriEndEx( const vec4_t color, const char* name );
|