Cumulia Illustrator Rendering Engine v2.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
cil::Sampler Class Reference

The Sampler class specifies the texture pixel mapping and wrapping mode to a large object. More...

#include <sampler.h>

Inheritance diagram for cil::Sampler:
cil::Object

Public Types

enum class  Filter {
  NEAREST , LINEAR , NEAREST_MIPMAP_NEAREST , LINEAR_MIPMAP_NEAREST ,
  NEAREST_MIPMAP_LINEAR , LINEAR_MIPMAP_LINEAR
}
 The enumeration defines how to map the texture pixel to the coordinates. More...
 
enum class  WrapMode { REPEAT , CLAMP_TO_EDGE , MIRRORED_REPEAT }
 The enumeration defines three different wrapping mode. More...
 

Public Member Functions

 Sampler (Sampler::Filter minFilter=Sampler::Filter::LINEAR_MIPMAP_NEAREST, Sampler::Filter magFilter=Sampler::Filter::LINEAR, Sampler::WrapMode wrapS=Sampler::WrapMode::REPEAT, Sampler::WrapMode wrapT=Sampler::WrapMode::REPEAT)
 
- Public Member Functions inherited from cil::Object
 Object ()
 
virtual ~Object ()
 

Public Attributes

Filter minFilter
 
Filter magFilter
 
WrapMode wrapS
 
WrapMode wrapT
 

Detailed Description

The Sampler class specifies the texture pixel mapping and wrapping mode to a large object.

Member Enumeration Documentation

◆ Filter

enum class cil::Sampler::Filter
strong

The enumeration defines how to map the texture pixel to the coordinates.

Enumerator
NEAREST 
LINEAR 
NEAREST_MIPMAP_NEAREST 
LINEAR_MIPMAP_NEAREST 
NEAREST_MIPMAP_LINEAR 
LINEAR_MIPMAP_LINEAR 

◆ WrapMode

enum class cil::Sampler::WrapMode
strong

The enumeration defines three different wrapping mode.

Enumerator
REPEAT 
CLAMP_TO_EDGE 
MIRRORED_REPEAT 

Constructor & Destructor Documentation

◆ Sampler()

Member Data Documentation

◆ magFilter

Filter cil::Sampler::magFilter

◆ minFilter

Filter cil::Sampler::minFilter

◆ wrapS

WrapMode cil::Sampler::wrapS

◆ wrapT

WrapMode cil::Sampler::wrapT