18 #ifndef ZENI_VIDEO_HXX
19 #define ZENI_VIDEO_HXX
38 return g_backface_culling;
46 return g_ambient_lighting;
50 return g_normal_interp;
54 return g_vertical_sync;
58 return g_multisampling;
74 return m_alpha_function;
96 std::make_pair(
Point2i(), size));
99 void Video::set_2d(
const std::pair<Point2f, Point2f> &camera2d,
const bool &fix_aspect_ratio) {
115 return g_clear_color;
123 const std::pair<Vector3f, float> rayngel = rotation.
get_rotation();
const Color & get_clear_Color() const
Get the blank background color.
const Matrix4f & get_projection_matrix() const
Get the projection Matrix4f.
const std::pair< Point2i, Point2i > & get_viewport() const
Get the viewport.
static bool get_backface_culling()
Determine whether backface culling is enabled.
static bool get_lighting()
Determine whether dynamic lighting is enabled.
ShHandle get_fragment_shader_compiler() const
Get the fragment shader compiler.
virtual const Point2i & get_render_target_size() const =0
Get the dimensions of the render target.
EGLImageKHR EGLint * name
bool is_alpha_test_enabled() const
Determine whether alpha testing is enabled.
TEST get_alpha_test_function() const
Determine which alpha test is in use.
ShHandle m_vertex_compiler
bool is_3d() const
Determine whether currently rendering in 3D.
ShHandle get_vertex_shader_compiler() const
Get the vertex shader compiler.
bool is_zwrite_enabled() const
Determine whether writing to Z-Buffer is enabled.
static bool get_normal_interpolation()
Determine whether normal interpolation is enabled.
void apply_Texture(const String &name)
Apply a texture by name.
const Matrix4f & get_view_matrix() const
Get the view Matrix4f.
void set_3d(const Camera &camera)
Set a 3D view filling the entire display area.
std::pair< Vector3f, float > get_rotation() const
Get the rotation in radians left about an axis.
virtual void rotate_scene(const Vector3f &about, const float &radians)=0
Rotate the scene.
static const Color & get_ambient_lighting()
Get the current ambient lighting Color.
virtual void set_3d_view(const Camera &camera, const std::pair< Point2i, Point2i > &viewport=std::make_pair(Point2i(), get().get_render_target_size()))=0
Set a 3D view for a viewport.
void set_2d()
Set the default 2D view filling the entire display area.
A Featureful Quaternion Class.
static int get_multisampling()
Get the current level of multisampling.
static VIDEO_MODE get_video_mode()
Get the currently selected video mode.
virtual void set_2d_view(const std::pair< Point2f, Point2f > &camera2d, const std::pair< Point2i, Point2i > &viewport=std::make_pair(Point2i(), get().get_render_target_size()), const bool &fix_aspect_ratio=false)=0
Set a 2D view for a viewport.
Textures & get_Textures()
Get access to the singleton.
static bool get_vertical_sync()
Determine whether vertical sync is enabled.
bool is_ztest_enabled() const
Determine whether testing the Z-Buffer is enabled.
const Color & get_Color() const
Get the current color.
A Featureful 4-Space Matrix Class.
ShHandle m_fragment_compiler
A 2D Point represented with floats.
float get_alpha_test_value() const
Determine what value the alpha test is comparing against.
A 2D Point represented with integers.