srp
software rendering pipeline
Loading...
Searching...
No Matches
texture.h
Go to the documentation of this file.
1// Software Rendering Pipeline (SRP) library
2// Licensed under GNU GPLv3
3
4#pragma once
5
10#include <stdint.h>
11#include <stddef.h>
12#include "srp/color.h"
13
23
25typedef struct SRPTexture SRPTexture;
26
33 const char* image,
36);
39void srpFreeTexture(SRPTexture* this);
40
47 const SRPTexture* this, float u, float v, float out[4]
48);
49
53{
54 SRP_TEXTURE_WRAPPING_MODE_X,
55 SRP_TEXTURE_WRAPPING_MODE_Y
57
62int srpTextureGet(SRPTexture* this, SRPTextureParameter parameter);
67void srpTextureSet(SRPTexture* this, SRPTextureParameter parameter, int data);
68
// ingroup Texture
void srpFreeTexture(SRPTexture *this)
Definition texture.c:50
void srpTextureGetFilteredColor(const SRPTexture *this, float u, float v, float out[4])
Definition texture.c:56
SRPTexture * srpNewTexture(const char *image, SRPTextureWrappingMode wrappingModeX, SRPTextureWrappingMode wrappingModeY)
Definition texture.c:27
SRPTextureWrappingMode
Definition texture.h:19
SRPTextureParameter
Definition texture.h:53
int srpTextureGet(SRPTexture *this, SRPTextureParameter parameter)
Definition texture.c:83
void srpTextureSet(SRPTexture *this, SRPTextureParameter parameter, int data)
Definition texture.c:100
@ TW_REPEAT
Definition texture.h:20
@ TW_CLAMP_TO_EDGE
Definition texture.h:21
Definition texture_p.h:16
SRPTextureWrappingMode wrappingModeY
Definition texture_p.h:23
SRPTextureWrappingMode wrappingModeX
Definition texture_p.h:22
uint8_t * data
Definition texture_p.h:17