PrevUpHomeNext

Output data wrapper

#include <oglplus/output_data.hpp>

class OutputData
{
public:
	typedef OneOf<DataType, PixelDataType> PixDataType;

	OutputData(BufferSize size, GLvoid* addr); 1

	OutputData(PixDataType type, BufferSize size, GLvoid* addr); 2

	template <typename T>
	OutputData(SizeType count, T* addr); 3

	template <typename T, std::size_t N>
	OutputData(T (&addr)[N]); 4

	template <typename T, std::size_t N>
	OutputData(std::array<T, N>& a); 5

	template <typename T>
	OutputData(std::vector<T>& v); 6

	PixDataType Type(void) const; 7

	BigSizeType Size(void) const; 8

	GLvoid* Addr(void) const; 9
};

1

Construction from size in bytes and pointer to addr.

2

Construction from type, size in bytes and pointer to addr.

3

Construction from count of instances of type T located at addr.

4

Construction from an array with known size.

5

Construction from a std::array.

6

Construction from a std::vector.

7

The pixel data type.

8

Geturns size in bytes.

9

Returns the location of the data.


PrevUpHomeNext