Viskores  1.0
Public Types | Public Member Functions | Private Attributes | List of all members
viskores::rendering::TextRendererBatcher Class Reference

#include <TextRendererBatcher.h>

Public Types

using FontTextureType = viskores::rendering::Canvas::FontTextureType
 
using ScreenCoordsType = viskores::Id4
 
using TextureCoordsType = viskores::Vec4f_32
 
using ColorType = viskores::Vec4f_32
 
using ScreenCoordsArrayHandle = viskores::cont::ArrayHandle< ScreenCoordsType >
 
using TextureCoordsArrayHandle = viskores::cont::ArrayHandle< TextureCoordsType >
 
using ColorsArrayHandle = viskores::cont::ArrayHandle< ColorType >
 
using DepthsArrayHandle = viskores::cont::ArrayHandle< viskores::Float32 >
 

Public Member Functions

 TextRendererBatcher (const viskores::rendering::Canvas::FontTextureType &fontTexture)
 
void BatchText (const ScreenCoordsArrayHandle &screenCoords, const TextureCoordsArrayHandle &textureCoords, const viskores::rendering::Color &color, const viskores::Float32 &depth)
 
void Render (const viskores::rendering::Canvas *canvas) const
 

Private Attributes

viskores::rendering::Canvas::FontTextureType FontTexture
 
std::vector< ScreenCoordsTypeScreenCoords
 
std::vector< TextureCoordsTypeTextureCoords
 
std::vector< ColorTypeColors
 
std::vector< viskores::Float32Depths
 

Member Typedef Documentation

◆ ColorsArrayHandle

◆ ColorType

◆ DepthsArrayHandle

◆ FontTextureType

◆ ScreenCoordsArrayHandle

◆ ScreenCoordsType

◆ TextureCoordsArrayHandle

◆ TextureCoordsType

Constructor & Destructor Documentation

◆ TextRendererBatcher()

viskores::rendering::TextRendererBatcher::TextRendererBatcher ( const viskores::rendering::Canvas::FontTextureType fontTexture)

Member Function Documentation

◆ BatchText()

void viskores::rendering::TextRendererBatcher::BatchText ( const ScreenCoordsArrayHandle screenCoords,
const TextureCoordsArrayHandle textureCoords,
const viskores::rendering::Color color,
const viskores::Float32 depth 
)

◆ Render()

void viskores::rendering::TextRendererBatcher::Render ( const viskores::rendering::Canvas canvas) const

Member Data Documentation

◆ Colors

std::vector<ColorType> viskores::rendering::TextRendererBatcher::Colors
private

◆ Depths

std::vector<viskores::Float32> viskores::rendering::TextRendererBatcher::Depths
private

◆ FontTexture

viskores::rendering::Canvas::FontTextureType viskores::rendering::TextRendererBatcher::FontTexture
private

◆ ScreenCoords

std::vector<ScreenCoordsType> viskores::rendering::TextRendererBatcher::ScreenCoords
private

◆ TextureCoords

std::vector<TextureCoordsType> viskores::rendering::TextRendererBatcher::TextureCoords
private

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