Skip to content

Commit

Permalink
common: render_api: sync header with engine tree
Browse files Browse the repository at this point in the history
* We removed TF_ALLOW_EMBOSS that was used for fake bumpmapping/deep frying
  the texture. Fun but useless feature.

* Added TF_ALLOW_NEAREST flag that allows switching to nearest filtering for
  textures without a mipmap (fonts, HUD, etc).
  • Loading branch information
a1batross authored and SNMetamorph committed May 29, 2024
1 parent d7965b2 commit eac47a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/render_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ typedef enum
TF_KEEP_SOURCE = (1<<1), // some images keep source
TF_NOFLIP_TGA = (1<<2), // Steam background completely ignore tga attribute 0x20
TF_EXPAND_SOURCE = (1<<3), // Don't keep source as 8-bit expand to RGBA
TF_ALLOW_EMBOSS = (1<<4), // Allow emboss-mapping for this image
// reserved
TF_RECTANGLE = (1<<5), // this is GL_TEXTURE_RECTANGLE
TF_CUBEMAP = (1<<6), // it's cubemap texture
TF_DEPTHMAP = (1<<7), // custom texture filter used
Expand All @@ -112,7 +112,8 @@ typedef enum
TF_ARB_FLOAT = (1<<26), // float textures
TF_NOCOMPARE = (1<<27), // disable comparing for depth textures
TF_ARB_16BIT = (1<<28), // keep image as 16-bit (not 24)
TF_MULTISAMPLE = (1<<29), // multisample texture
TF_MULTISAMPLE = (1<<29), // multisampling texture
TF_ALLOW_NEAREST = (1<<30), // allows toggling nearest filtering for TF_NOMIPMAP textures
} texFlags_t;

typedef enum
Expand Down Expand Up @@ -280,4 +281,5 @@ typedef struct render_interface_s
// shuffle previous & next states for lerping
void (*CL_UpdateLatchedVars)( struct cl_entity_s *e, qboolean reset );
} render_interface_t;

#endif//RENDER_API_H

0 comments on commit eac47a3

Please sign in to comment.