VTK-m
2.2
|
#include <TextRendererBatcher.h>
Public Types | |
using | FontTextureType = vtkm::rendering::Canvas::FontTextureType |
using | ScreenCoordsType = vtkm::Id4 |
using | TextureCoordsType = vtkm::Vec4f_32 |
using | ColorType = vtkm::Vec4f_32 |
using | ScreenCoordsArrayHandle = vtkm::cont::ArrayHandle< ScreenCoordsType > |
using | TextureCoordsArrayHandle = vtkm::cont::ArrayHandle< TextureCoordsType > |
using | ColorsArrayHandle = vtkm::cont::ArrayHandle< ColorType > |
using | DepthsArrayHandle = vtkm::cont::ArrayHandle< vtkm::Float32 > |
Public Member Functions | |
TextRendererBatcher (const vtkm::rendering::Canvas::FontTextureType &fontTexture) | |
void | BatchText (const ScreenCoordsArrayHandle &screenCoords, const TextureCoordsArrayHandle &textureCoords, const vtkm::rendering::Color &color, const vtkm::Float32 &depth) |
void | Render (const vtkm::rendering::Canvas *canvas) const |
Private Attributes | |
vtkm::rendering::Canvas::FontTextureType | FontTexture |
std::vector< ScreenCoordsType > | ScreenCoords |
std::vector< TextureCoordsType > | TextureCoords |
std::vector< ColorType > | Colors |
std::vector< vtkm::Float32 > | Depths |
using vtkm::rendering::TextRendererBatcher::DepthsArrayHandle = vtkm::cont::ArrayHandle<vtkm::Float32> |
using vtkm::rendering::TextRendererBatcher::FontTextureType = vtkm::rendering::Canvas::FontTextureType |
using vtkm::rendering::TextRendererBatcher::ScreenCoordsArrayHandle = vtkm::cont::ArrayHandle<ScreenCoordsType> |
using vtkm::rendering::TextRendererBatcher::TextureCoordsArrayHandle = vtkm::cont::ArrayHandle<TextureCoordsType> |
vtkm::rendering::TextRendererBatcher::TextRendererBatcher | ( | const vtkm::rendering::Canvas::FontTextureType & | fontTexture | ) |
void vtkm::rendering::TextRendererBatcher::BatchText | ( | const ScreenCoordsArrayHandle & | screenCoords, |
const TextureCoordsArrayHandle & | textureCoords, | ||
const vtkm::rendering::Color & | color, | ||
const vtkm::Float32 & | depth | ||
) |
void vtkm::rendering::TextRendererBatcher::Render | ( | const vtkm::rendering::Canvas * | canvas | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |