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