Spinning Topp Logo BlackTopp Studios
inc
Public Member Functions | List of all members
Mezzanine::Graphics::Procedural::TextureGenerator Class Referenceabstract

A base class for texture generators that use the TextureBuffer class. More...

#include <texturegenerator.h>

+ Inheritance diagram for Mezzanine::Graphics::Procedural::TextureGenerator:

Public Member Functions

 TextureGenerator ()
 Blank constructor.
 
virtual ~TextureGenerator ()
 Class destructor.
 
virtual void AddToTextureBuffer (TextureBuffer &Buffer) const =0
 Replaces and populates the pixels as configured in this generator to a TextureBuffer. More...
 
TextureBuffer BuildTextureBuffer (const Whole SquareSize) const
 Creates a TextureBuffer with the pixels as configured in this generator. More...
 
TextureBuffer BuildTextureBuffer (const Whole TexWidth, const Whole TexHeight) const
 Creates a TextureBuffer with the pixels as configured in this generator. More...
 
ImageGenerateImage (const Whole SquareSize, const Graphics::PixelFormat Format=Graphics::PF_R8G8B8A8) const
 Generates the Image. More...
 
ImageGenerateImage (const Whole TexWidth, const Whole TexHeight, const Graphics::PixelFormat Format=Graphics::PF_R8G8B8A8) const
 Generates the Image. More...
 
TextureGenerateTexture (const Whole SquareSize, const String &TexName, const String &TexGroup, const Graphics::PixelFormat Format=Graphics::PF_R8G8B8A8) const
 Generates the Texture. More...
 
TextureGenerateTexture (const Whole TexWidth, const Whole TexHeight, const String &TexName, const String &TexGroup, const Graphics::PixelFormat Format=Graphics::PF_R8G8B8A8) const
 Generates the Texture. More...
 
virtual String GetName () const =0
 Gets the name of this generator. More...
 

Detailed Description

A base class for texture generators that use the TextureBuffer class.

Definition at line 83 of file texturegenerator.h.

Member Function Documentation

virtual void Mezzanine::Graphics::Procedural::TextureGenerator::AddToTextureBuffer ( TextureBuffer Buffer) const
pure virtual
TextureBuffer Mezzanine::Graphics::Procedural::TextureGenerator::BuildTextureBuffer ( const Whole  SquareSize) const

Creates a TextureBuffer with the pixels as configured in this generator.

Parameters
SquareSizeThe width and height of the Texture to create. This value will be clamped to be at least 8.
Returns
Returns a new TextureBuffer with the generated pixels of this generator.

Definition at line 119 of file texturegenerator.cpp.

TextureBuffer Mezzanine::Graphics::Procedural::TextureGenerator::BuildTextureBuffer ( const Whole  TexWidth,
const Whole  TexHeight 
) const

Creates a TextureBuffer with the pixels as configured in this generator.

Parameters
TexWidthThe pixel width of the Texture to be generated. This value will be clamped to be at least 8.
TexHeightThe pixel height of the Texture to be generated. This value will be clamped to be at least 8.
Returns
Returns a new TextureBuffer with the generated pixels of this generator.

Definition at line 126 of file texturegenerator.cpp.

Image * Mezzanine::Graphics::Procedural::TextureGenerator::GenerateImage ( const Whole  SquareSize,
const Graphics::PixelFormat  Format = Graphics::PF_R8G8B8A8 
) const

Generates the Image.

Remarks
The generated image is not owned by this generator or anything. It is up to the user/caller of this method to clean it up.
Parameters
SquareSizeThe width and height of the Image to create. This value will be clamped to be at least 8.
FormatThe pixel format for the generated Image.
Returns
Returns a pointer to the newly created Image.

Definition at line 103 of file texturegenerator.cpp.

Image * Mezzanine::Graphics::Procedural::TextureGenerator::GenerateImage ( const Whole  TexWidth,
const Whole  TexHeight,
const Graphics::PixelFormat  Format = Graphics::PF_R8G8B8A8 
) const

Generates the Image.

Remarks
The generated image is not owned by this generator or anything. It is up to the user/caller of this method to clean it up.
Parameters
TexWidthThe pixel width of the Image to be generated. This value will be clamped to be at least 8.
TexHeightThe pixel height of the Image to be generated. This value will be clamped to be at least 8.
FormatThe pixel format for the generated Image.
Returns
Returns a pointer to the newly created Image.

Definition at line 111 of file texturegenerator.cpp.

Texture * Mezzanine::Graphics::Procedural::TextureGenerator::GenerateTexture ( const Whole  SquareSize,
const String TexName,
const String TexGroup,
const Graphics::PixelFormat  Format = Graphics::PF_R8G8B8A8 
) const

Generates the Texture.

Parameters
SquareSizeThe width and height of the Texture to create. This value will be clamped to be at least 8.
TexNameThe name to give to the generated Texture.
TexGroupThe asset group to place the Texture in.
FormatThe pixel format for the generated Texture.
Returns
Returns a pointer to the newly created Texture.

Definition at line 87 of file texturegenerator.cpp.

Texture * Mezzanine::Graphics::Procedural::TextureGenerator::GenerateTexture ( const Whole  TexWidth,
const Whole  TexHeight,
const String TexName,
const String TexGroup,
const Graphics::PixelFormat  Format = Graphics::PF_R8G8B8A8 
) const

Generates the Texture.

Parameters
TexWidthThe pixel width of the Texture to be generated. This value will be clamped to be at least 8.
TexHeightThe pixel height of the Texture to be generated. This value will be clamped to be at least 8.
TexNameThe name to give to the generated Texture.
TexGroupThe asset group to place the Texture in.
FormatThe pixel format for the generated Texture.
Returns
Returns a pointer to the newly created Texture.

Definition at line 95 of file texturegenerator.cpp.

virtual String Mezzanine::Graphics::Procedural::TextureGenerator::GetName ( ) const
pure virtual

The documentation for this class was generated from the following files: