76 #define MAX_GL_TEXTURES 1024
77 #define MAX_GL_LIGHTMAPS 256
78 #define MAX_GL_DELUXEMAPS 256
79 #define MAX_GL_FRAMEBUFFERS 256
86 void R_ScaleTexture(
const unsigned* in,
int inwidth,
int inheight,
unsigned* out,
int outwidth,
int outheight);
111 #define MAX_ENVMAPTEXTURES 2
114 #define NUM_FLARETEXTURES 10
image_t * r_envmaptextures[MAX_ENVMAPTEXTURES]
void R_TextureSolidMode(const char *string)
void R_FreeImage(image_t *image)
Free the image and its assigned maps (roughness, normal, specular, glow - if there are any) ...
QGL_EXTERN GLint GLenum type
void R_ImageList_f(void)
Shows all loaded images.
void R_TextureAlphaMode(const char *string)
void R_UploadTexture(const unsigned *data, int width, int height, image_t *image)
Uploads the opengl texture to the server.
bool image_t * R_GetImageAtIndex(int i)
Returns an image pointer from the r_images linked list, as if r_images would be a plain contiguous ar...
void R_ScaleTexture(const unsigned *in, int inwidth, int inheight, unsigned *out, int outwidth, int outheight)
void R_ImageClearMaterials(void)
Free previously loaded materials and their stages.
const image_t * R_FindPics(const char *name)
Searches for an image in the image array.
void R_ShutdownImages(void)
void R_UploadAlpha(const image_t *image, const byte *alphaData)
struct image_s * roughnessmap
bool R_ImageExists(const char *pname,...) __attribute__((format(__printf__
#define MAX_ENVMAPTEXTURES
#define NUM_FLARETEXTURES
struct image_s * specularmap
void R_GetScaledTextureSize(int width, int height, int *scaledWidth, int *scaledHeight)
Calculates the texture size that should be used to upload the texture data.
struct image_s * hash_next
image_t * R_LoadImageData(const char *name, const byte *pic, int width, int height, imagetype_t type)
Creates a new image from RGBA data. Stores it in the gltextures array and also uploads it...
image_t * r_flaretextures[NUM_FLARETEXTURES]
image_t * R_FindImage(const char *pname, imagetype_t type)
Finds or loads the given image.
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
int R_GetImageIndex(image_t *image)
Returns an index of the image pointer in the r_images linked list, as if r_images would be a plain co...
void R_SoftenTexture(byte *in, int width, int height, int bpp)
Applies blurring to a texture.
void R_ReloadImages(void)
void R_TextureMode(const char *string)
void R_FreeWorldImages(void)
Any image that is a mesh or world texture will be removed here.
GLsizei const GLvoid * data
struct image_s * normalmap
image_t * R_GetImage(const char *name)
image_t * R_RenderToTexture(const char *name, int x, int y, int w, int h)
void format(__printf__, 1, 2)))
Header file for the render material subsystem.