3#include <cgv/render/drawable.h>
4#include <cgv/render/shader_program.h>
5#include <cgv/render/vertex_buffer.h>
6#include <cgv/render/attribute_array_binding.h>
18 std::vector<unsigned> tex_ids;
19 std::vector<float> durations;
20 unsigned current_image;
21 std::string file_name;
22 std::vector<std::string> files;
49 float checker_lambda, k1, k2, k3, k4, k5, k6, p1, p2, cx, cy, s;
68 bool read_image(
const std::string& _file_name);
70 bool read_images(
const std::string& _file_name,
const std::vector<std::string>& _files);
72 bool save_images(
const std::string& output_file_name);
87#include <cgv/config/lib_end.h>
the attribute_array_binding allows to define vertex attributes (i.e.
base class for all drawables, which is independent of the used rendering API.
drawable()
default construction
image_drawable()
construct base image drawable
void timer_event(double t, double dt)
timer event that can be used for animation, connect this to some animation trigger
bool save_images(const std::string &output_file_name)
function to save all images
bool read_images(const std::string &_file_name, const std::vector< std::string > &_files)
function to read a list of images
bool read_image(const std::string &_file_name)
function to read a single image
unsigned get_nr_images() const
return the number of loaded subimages
bool show_selection
whether to show the selection rectangle
ibox2 selection
extent selection box
a shader program combines several shader code fragments to a complete definition of the shading pipel...
a vertex buffer is an unstructured memory block on the GPU.
namespace for opengl specific GPU programming
namespace for api independent GPU programming
this header is dependency free
cgv::math::fvec< float, 4 > vec4
declare type of 4d single precision floating point vectors (used for homogeneous coordinates)
cgv::media::axis_aligned_box< int32_t, 2 > ibox2
declare type of 2d 32 bit integer axis-aligned boxes
cgv::math::fvec< float, 2 > vec2
declare type of 2d single precision floating point vectors