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

Classes

struct  FileBuffer
 

Public Member Functions

void renderFullPipeline (ViewSettings settings)
 
void saveImage (std::unique_ptr< FileBuffer > image)
 
void save_process ()
 

Public Attributes

bool alpha_support = true
 
bool float_support = false
 
bool use_alpha = false
 
bool use_float = false
 
bool do_exit = false
 
std::filesystem::path file_template = "SaveView.png"
 
FREE_IMAGE_FORMAT fi_format = FIF_PNG
 
int fi_options = PNG_Z_BEST_SPEED
 
std::optional< gmCore::size2resolution
 
OffscreenRenderTargets render_target
 
RasterProcessor raster_processor
 
GLenum pixel_format
 
std::vector< std::shared_ptr< View > > views
 
int frame = 0
 
std::shared_ptr< gmCore::FreeImagefree_image
 
bool is_setup = false
 
bool is_functional = false
 
bool save_process_alive = true
 
std::thread save_thread
 
std::condition_variable save_condition
 
std::mutex save_lock
 
std::unique_ptr< FileBuffersave_image
 

Static Public Attributes

static const std::string fragment_code
 

Member Data Documentation

◆ fragment_code

const std::string gramods::gmGraphics::SaveView::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: