gramods
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gramods::gmGraphics::ViewTexture::Impl Struct Reference
Collaboration diagram for gramods::gmGraphics::ViewTexture::Impl:
Collaboration graph
[legend]

Public Member Functions

bool setup ()
 
void update (ViewSettings settings)
 
void renderFullPipeline (ViewSettings settings)
 

Public Attributes

bool use_alpha = false
 
bool use_float = false
 
gmCore::size2 resolution = { 1024, 1024 }
 
OffscreenRenderTargets render_target
 
RasterProcessor raster_processor
 
GLenum pixel_format
 
std::vector< std::shared_ptr< View > > views
 
size_t cache_frame = std::numeric_limits<size_t>::max()
 
bool is_setup = false
 
bool is_functional = false
 

Static Public Attributes

static const std::string fragment_code
 

Member Data Documentation

◆ fragment_code

const std::string gramods::gmGraphics::ViewTexture::Impl::fragment_code
static
Initial value:
=
R"lang=glsl(
#version 330 core
uniform sampler2D tex;
in vec2 position;
out vec4 fragColor;
void main() {
vec3 rgb = texture(tex, position * 0.5 + 0.5).rgb;
fragColor = vec4(rgb, 1);
}
)lang=glsl"

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