Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
renderutils.h
Go to the documentation of this file.
1 
18 #ifndef ION_IMAGE_RENDERUTILS_H_
19 #define ION_IMAGE_RENDERUTILS_H_
20 
21 #include "base/integral_types.h"
22 #include "ion/base/allocator.h"
23 #include "ion/gfx/cubemaptexture.h"
24 #include "ion/gfx/image.h"
25 #include "ion/gfx/renderer.h"
26 #include "ion/gfx/texture.h"
27 
28 namespace ion {
29 namespace image {
30 
36 ION_API const gfx::ImagePtr RenderTextureImage(
37  const gfx::TexturePtr& texture, uint32 width, uint32 height,
38  const gfx::RendererPtr& renderer, const base::AllocatorPtr& allocator);
39 
44  uint32 width, uint32 height,
45  const gfx::RendererPtr& renderer, const base::AllocatorPtr& allocator);
46 
47 } // namespace image
48 } // namespace ion
49 
50 #endif // ION_IMAGE_RENDERUTILS_H_
const gfx::ImagePtr RenderTextureImage(const gfx::TexturePtr &texture, uint32 width, uint32 height, const gfx::RendererPtr &renderer, const base::AllocatorPtr &allocator)
Public functions.
Definition: renderutils.cc:258
base::ReferentPtr< Image >::Type ImagePtr
Definition: image.h:29
base::ReferentPtr< CubeMapTexture >::Type CubeMapTexturePtr
Convenience typedef for shared pointer to a CubeMapTexture.
CubeFace
The names of faces of the cube map.
SharedPtr< Allocator > AllocatorPtr
Definition: allocator.h:51
const Grid & image
The original monochrome image data, as doubles (0 - 1).
Definition: sdfutils.cc:90
int width
TexturePtr texture
The Texture to add sub-image data to.
Definition: fontimage.cc:107
base::ReferentPtr< Renderer >::Type RendererPtr
Convenience typedef for shared pointer to a Renderer.
Definition: renderer.h:428
base::ReferentPtr< Texture >::Type TexturePtr
Convenience typedef for shared pointer to a Texture.
Definition: texture.h:333
const gfx::ImagePtr RenderCubeMapTextureFaceImage(const gfx::CubeMapTexturePtr &cubemap, gfx::CubeMapTexture::CubeFace face, uint32 width, uint32 height, const gfx::RendererPtr &renderer, const base::AllocatorPtr &allocator)
This is similar to RenderTextureImage(), but instead operates on one face of a CubeMapTexture.
Definition: renderutils.cc:267