CUGL 2.5
Cornell University Game Library
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
cugl::TextureRenderer Class Reference

#include <CUTextureRenderer.h>

Public Member Functions

void draw (const std::shared_ptr< Texture > &texture)
 
bool init ()
 

Static Public Member Functions

static std::shared_ptr< TextureRendereralloc ()
 

Detailed Description

A class for drawing a full-screen texture.

This class is an alternative to SpriteBatch for the case when all you want to to do is draw a single texture as a full-screen quad. There is no support for compositing or other features. It is primarily used to test out custom shaders.

Member Function Documentation

◆ alloc()

static std::shared_ptr< TextureRenderer > cugl::TextureRenderer::alloc ( )
inlinestatic

Returns a new texture renderer with the default vertex capacity

Returns
a new texture renderer

◆ draw()

void cugl::TextureRenderer::draw ( const std::shared_ptr< Texture > &  texture)

Draws a full screen quad given a texture

Parameters
textureThe texture to draw

◆ init()

bool cugl::TextureRenderer::init ( )

Initializes a texture renderer.


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