Inertia's picture

[GL3.3] Sampler Objects

Project:The Open Toolkit library
Version:1.1-2014-01-02
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

http://www.opengl.org/registry/specs/ARB/sampler_objects.txt

Add to Enum GetPName:
SamplerBinding 0x8919

Funcs:

void GenSamplers(sizei count, uint *samplers);
void DeleteSamplers(sizei count, const uint * samplers);
boolean IsSampler(uint sampler);
void BindSampler(uint unit, uint sampler);
void SamplerParameteri(uint sampler, enum pname, int param);
void SamplerParameterf(uint sampler, enum pname, float param);
void SamplerParameteriv(uint sampler, enum pname, const int *params);
void SamplerParameterfv(uint sampler, enum pname, const float *params);
void SamplerParameterIiv(uint sampler, enum pname, const int *params);
void SamplerParameterIuiv(uint sampler, enum pname, const uint *params);
void GetSamplerParameteriv(uint sampler, enum pname, int *params);
void GetSamplerParameterfv(uint sampler, enum pname, float *params);
void GetSamplerParameterIiv(uint sampler, enum pname, int *params);
void GetSamplerParameterIuiv(uint sampler, enum pname, uint *params);

"registry" wrote:

The values accepted in the pname parameter are TEXTURE_WRAP_S, TEXTURE_WRAP_T,
TEXTURE_WRAP_R, TEXTURE_MIN_FILTER, TEXTURE_MAG_FILTER,
TEXTURE_BORDER_COLOR, TEXTURE_MIN_LOD, TEXTURE_MAX_LOD,
TEXTURE_LOD_BIAS, TEXTURE_COMPARE_MODE, TEXTURE_COMPARE_FUNC and
TEXTURE_MAX_ANISTROPY_EXT.

Create new Enum to use with the above SamplerParameter*** and GetSamplerParameter*** functions:

TextureWrapS = ((int)0x2802),
TextureWrapT = ((int)0x2803),
TextureWrapR = ((int)0x8072),
TextureMinFilter = ((int)0x2801),
TextureMagFilter = ((int)0x2800),
TextureBorderColor = ((int)0x1004),
TextureMinLod = ((int)0x813A),
TextureMaxLod = ((int)0x813B),
TextureLodBias = ((int)0x8501),
TextureCompareMode = ((int)0x884C),
TextureCompareFunc = ((int)0x884D),
TextureMaxAnisotropyExt = ((int)0x84FE),


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Status:open» fixed

Fixed in gl4 branch, r2930.

the Fiddler's picture

#2

Version:1.x-dev» 1.1-2014-01-02
Status:fixed» closed

Closing issues fixed in OpenTK 1.1.

If this is still an issue please file a new bug report at https://github.com/opentk/opentk/issues