cgv
Loading...
Searching...
No Matches
cgv::render::texture_base Class Reference

base interface for a texture More...

#include <context.h>

Inheritance diagram for cgv::render::texture_base:
cgv::render::render_component cgv::render::texture

Public Member Functions

 texture_base (TextureType _tt=TT_UNDEF)
 initialize members
 
- Public Member Functions inherited from cgv::render::render_component
 render_component ()
 initialize members
 
virtual bool is_created () const
 return whether component has been created
 
void put_id_void (void *ptr) const
 copy the rendering api specific id the component to the memory location of the given pointer.
 
template<typename T >
void put_id (T &id) const
 cast the refence to rendering api specific representation of component id to the specified type
 

Public Attributes

TextureFilter mag_filter
 
TextureFilter min_filter
 
TextureWrap wrap_s
 
TextureWrap wrap_t
 
TextureWrap wrap_r
 
float anisotropy
 
float priority
 
float border_color [4]
 
CompareFunction compare_function
 
bool use_compare_function
 
TextureType tt
 
bool have_mipmaps
 
unsigned nr_multi_samples = 5
 
bool fixed_sample_locations = true
 
- Public Attributes inherited from cgv::render::render_component
void * handle
 
void * internal_format
 
void * user_data
 
const contextctx_ptr
 keep pointer to my context
 
std::string last_error
 a string that contains the last error
 

Detailed Description

base interface for a texture

Definition at line 331 of file context.h.

Constructor & Destructor Documentation

◆ texture_base()

cgv::render::texture_base::texture_base ( TextureType  _tt = TT_UNDEF)

initialize members

Definition at line 2066 of file context.cxx.

Member Data Documentation

◆ anisotropy

float cgv::render::texture_base::anisotropy

Definition at line 339 of file context.h.

◆ border_color

float cgv::render::texture_base::border_color[4]

Definition at line 341 of file context.h.

◆ compare_function

CompareFunction cgv::render::texture_base::compare_function

Definition at line 342 of file context.h.

◆ fixed_sample_locations

bool cgv::render::texture_base::fixed_sample_locations = true

Definition at line 347 of file context.h.

◆ have_mipmaps

bool cgv::render::texture_base::have_mipmaps

Definition at line 345 of file context.h.

◆ mag_filter

TextureFilter cgv::render::texture_base::mag_filter

Definition at line 334 of file context.h.

◆ min_filter

TextureFilter cgv::render::texture_base::min_filter

Definition at line 335 of file context.h.

◆ nr_multi_samples

unsigned cgv::render::texture_base::nr_multi_samples = 5

Definition at line 346 of file context.h.

◆ priority

float cgv::render::texture_base::priority

Definition at line 340 of file context.h.

◆ tt

TextureType cgv::render::texture_base::tt

Definition at line 344 of file context.h.

◆ use_compare_function

bool cgv::render::texture_base::use_compare_function

Definition at line 343 of file context.h.

◆ wrap_r

TextureWrap cgv::render::texture_base::wrap_r

Definition at line 338 of file context.h.

◆ wrap_s

TextureWrap cgv::render::texture_base::wrap_s

Definition at line 336 of file context.h.

◆ wrap_t

TextureWrap cgv::render::texture_base::wrap_t

Definition at line 337 of file context.h.


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