PrevUpHomeNext

DSA renderbuffers

#include <oglplus/renderbuffer.hpp>

Operations with direct state access

template <>
class ObjectOps<tag::DirectState, tag::Renderbuffer>
 : public ObjZeroOps<tag::DirectState, tag::Renderbuffer> 1
{
public:
	void Storage(
		PixelDataInternalFormat internalformat,
		SizeType width,
		SizeType height
	); 2
	void Storage(const images::ImageSpec& image_spec);

	void StorageMultisample(
		SizeType samples,
		PixelDataInternalFormat internalformat,
		SizeType width,
		SizeType height
	); 3

	SizeType Width(void) const; 4
	SizeType Height(void) const; 5

	SizeType RedSize(void) const; 6
	SizeType GreenSize(void) const; 7
	SizeType BlueSize(void) const; 8
	SizeType AlphaSize(void) const; 9
	SizeType DepthSize(void) const; 10
	SizeType StencilSize(void) const; 11

	SizeType Samples(void) const; 12
	PixelDataInternalFormat InternalFormat(void) const; 13
};

1

Indirectly inherits from ObjCommonOps<tag::Renderbuffer>.

2

Sets the storage parameters for this renderbuffer. See glNamedRenderbufferStorage.

3

Sets multipsample storage parameters for this renderbuffer. See glNamedRenderbufferStorageMultisample.

4

Returns the width in pixels of this renderbuffer. See glGetNamedRenderbufferParameter, GL_RENDERBUFFER_WIDTH.

5

Returns the height in pixels of this renderbuffer. See glGetNamedRenderbufferParameter, GL_RENDERBUFFER_HEIGHT.

6

Returns the size in bits of the red component of this renderbuffer. See glGetNamedRenderbufferParameter, GL_RENDERBUFFER_RED_SIZE.

7

Returns the size in bits of the green component of this renderbuffer. See glGetNamedRenderbufferParameter, GL_RENDERBUFFER_GREEN_SIZE.

8

Returns the size in bits of the blue component of this renderbuffer. See glGetNamedRenderbufferParameter, GL_RENDERBUFFER_BLUE_SIZE.

9

Returns the size in bits of the alpha component of this renderbuffer. See glGetNamedRenderbufferParameter, GL_RENDERBUFFER_ALPHA_SIZE.

10

Returns the size in bits of the depth component of this renderbuffer. See glGetNamedRenderbufferParameter, GL_RENDERBUFFER_DEPTH_SIZE.

11

Returns the size in bits of the stencil component of this renderbuffer. See glGetNamedRenderbufferParameter, GL_RENDERBUFFER_STENCIL_SIZE.

12

Returns the number of samples of this renderbuffer. See glGetNamedRenderbufferParameter, GL_RENDERBUFFER_SAMPLES.

13

Returns the internal format of this renderbuffer. See glGetNamedRenderbufferParameter, GL_RENDERBUFFER_INTERNAL_FORMAT.

Definition

typedef ObjectOps<tag::DirectState, tag::Renderbuffer>
	DSARenderbufferOps;

typedef Object<DSARenderbufferOps> DSARenderbuffer;

Syntax sugar operators

DSARenderbufferOps& operator << (
	DSARenderbufferOps& rbo,
	RenderbufferTarget target
); 1

DSARenderbufferOps& operator << (
	DSARenderbufferOps& rbo,
	const images::ImageSpec& image_spec
); 2

1

Binds rbo to the specified target.

2

Sets the storage parameters from image_spec to the renderbuffer currently bound to the specified target.


PrevUpHomeNext