Creates a Red seamless 2D image with random metastars. More...
#include </home/chochlik/devel/oglplus/include/oglplus/images/metaballs.hpp>


Public Member Functions | |
| RandomMetastars (GLsizei width, GLsizei height, std::size_t count, GLfloat rad_min, GLfloat rad_max, GLfloat dif_min, GLfloat dif_max, GLuint ptc_min, GLuint ptc_max) | |
| Creates an image with the specified dimensions and params. More... | |
| GLsizei | Dimension (std::size_t i) const |
| Returns the i-th dimension of the image. More... | |
| GLsizei | Width (void) const |
| Returns the width of the image. | |
| GLsizei | Height (void) const |
| Returns the height of the image. | |
| GLsizei | Depth (void) const |
| Returns the depth of the image. | |
| GLsizei | Channels (void) const |
| Returns the number of channels. | |
| PixelDataType | Type (void) const |
| Returns the pixel data type. | |
| PixelDataFormat | Format (void) const |
| Return the pixel data format. | |
| PixelDataInternalFormat | InternalFormat (void) const |
| Return a suitable pixel data internal format. | |
| template<typename T > | |
| const T * | Data (void) const |
| Returns a pointer to the data. | |
| const void * | RawData (void) const |
| Returns an untyped pointer to the data. | |
| std::size_t | DataSize (void) const |
| Returns the size of data in bytes. | |
| Vector< double, 4 > | Pixel (GLsizei width, GLsizei height, GLsizei depth) const |
| Returns the pixel at the specified coordinates. | |
| double | Component (GLsizei width, GLsizei height, GLsizei depth, GLsizei component) const |
| Returns the component of the pixel at the specified coordinates. | |
| template<typename T > | |
| T | ComponentAs (GLsizei width, GLsizei height, GLsizei depth, GLsizei component) const |
| Returns the component of the pixel at the specified coordinates. | |
Creates a Red seamless 2D image with random metastars.
| oglplus::images::RandomMetastars::RandomMetastars | ( | GLsizei | width, |
| GLsizei | height, | ||
| std::size_t | count, | ||
| GLfloat | rad_min, | ||
| GLfloat | rad_max, | ||
| GLfloat | dif_min, | ||
| GLfloat | dif_max, | ||
| GLuint | ptc_min, | ||
| GLuint | ptc_max | ||
| ) |
Creates an image with the specified dimensions and params.
| width | the width of the image |
| height | the height of the image |
| count | the number of metastars to be generated. |
| rad_min | the minimum radius of a metaball normalized to (0, 1). |
| rad_max | the maximum radius of a metaball normalized to (0, 1). |
|
inherited |
Returns the i-th dimension of the image.
0: Width 1: Height 2: Depth 3: Channels
References oglplus::images::Image::Channels(), oglplus::images::Image::Depth(), oglplus::images::Image::Height(), and oglplus::images::Image::Width().