3 #ifndef GDK_GFX_WEBGL1ES2_CONTEXT_H 4 #define GDK_GFX_WEBGL1ES2_CONTEXT_H 6 #include <gdk/graphics_context.h> 16 virtual std::shared_ptr<screen_camera>
make_camera()
const override;
18 virtual std::shared_ptr<screen_camera>
make_camera(
const camera &other)
const override;
41 const std::vector<std::underlying_type<std::byte>::type> &aRGBA32PNGData)
const override;
virtual built_in_model_ptr_type get_cube_model() const override
WebGLES2 impl of built in cube model.
virtual std::shared_ptr< screen_camera > make_camera() const override
makes a camera TODO: rename to make_screen_camera probably
represents an observable 3d object.
Definition: entity.h:14
used to construct a model. Vertex data represents a set of vertex data in system memory ...
Definition: vertex_data.h:44
std::shared_ptr< model > model_ptr_type
model factory return type
Definition: graphics_context.h:42
std::shared_ptr< model > model_shared_ptr_type
shared ptr to a model
Definition: graphics_context.h:60
std::shared_ptr< model > built_in_model_ptr_type
ptr type for built in models provided by the implementation
Definition: graphics_context.h:48
Definition: graphics_context.h:30
virtual scene_ptr_type make_scene() const override
makes a scene
std::shared_ptr< shader_program > shader_program_shared_ptr_type
shared ptr to a shader_program
Definition: graphics_context.h:56
std::shared_ptr< shader_program > shader_program_ptr_type
shader_program factory return type
Definition: graphics_context.h:40
virtual graphics::context::material_ptr_type make_material(shader_program_shared_ptr_type pShader, material::render_mode aRenderMode, material::FaceCullingMode aFaceCullingMode) const override
make a material.
virtual graphics::context::texture_ptr_type make_texture(const texture::image_data_2d_view &imageView) const override
make a texture using a 2d image view
std::shared_ptr< material > material_shared_ptr_type
shared ptr to a material
Definition: graphics_context.h:58
virtual built_in_shader_ptr_type get_pink_shader_of_death() const override
A forward renderer shader program useful for displaying render errors:
virtual graphics::context::model_ptr_type make_model() const override
construct an empty model
brief webgl1/gles2.0 context implementation
Definition: webgl1es2_context.h:11
virtual entity_ptr_type make_entity(model_shared_ptr_type pModel, material_shared_ptr_type pMaterial) const override
make an entity
std::shared_ptr< entity > entity_ptr_type
entity factory return type
Definition: graphics_context.h:38
virtual ~webgl1es2_context() override=default
default dtor
render_mode
render mode decides transparency etc
Definition: material.h:33
virtual built_in_model_ptr_type get_quad_model() const override
WebGLES2 impl of built in quad model.
pod struct representing a view on decoded image data
Definition: texture.h:35
std::shared_ptr< texture > texture_ptr_type
texture factory return type
Definition: graphics_context.h:46
std::shared_ptr< shader_program > built_in_shader_ptr_type
ptr type for built in shaders provided by the implementation
Definition: graphics_context.h:50
virtual graphics::context::built_in_shader_ptr_type get_alpha_cutoff_shader() const override
A forward renderer shader program with the following properties:
webgl1es2_context()
default ctor
FaceCullingMode
specify whether front- or back-facing polygons can be culled
Definition: material.h:24
std::shared_ptr< material > material_ptr_type
material factory return type
Definition: graphics_context.h:44
virtual shader_program_ptr_type make_shader(const std::string &aVertexGLSL, const std::string &aFragGLSL) const override
make a shader program containing a user-defined vertex shader stage and fragment shader stage ...
std::shared_ptr< scene > scene_ptr_type
scene factory return type
Definition: graphics_context.h:36
virtual std::shared_ptr< texture_camera > make_texture_camera() const override
makes a texture_camera