|
Unravel Engine C++ Reference
|
Namespaces | |
| namespace | detail |
| namespace | eviction |
| namespace | format_search_flags |
Classes | |
| class | Atlas |
| struct | AtlasRegion |
| struct | buffer_type |
| type of vertex and index buffer to use with a TextBuffer More... | |
| struct | clip_quad_def |
| struct | dd_raii |
| class | eviction_registry |
| struct | fbo_attachment |
| struct | fbo_key |
| struct | font_info |
| class | font_manager |
| struct | font_profile_scope |
| struct | format_details |
| struct | frame_buffer |
| struct | gfx_callback |
| struct | glyph_info |
| A structure that describe a glyph. More... | |
| class | handle_impl |
| class | ievictable |
| struct | index_buffer |
| struct | mesh_vertex |
| struct | pos_texcoord0_color0_vertex |
| struct | pos_texcoord0_vertex |
| struct | pos_vertex |
| struct | program |
| class | RectanglePacker |
| struct | render_pass |
| class | render_view |
| struct | screen_pos_vertex |
| struct | shader |
| class | text_buffer |
| class | text_buffer_manager |
| class | text_line_metrics |
| Compute text crop area for text using a single font. More... | |
| class | text_metrics |
| struct | text_rectangle |
| struct | texture |
| struct | texture_key |
| class | true_type_font |
| struct | uniform |
| struct | vertex |
| struct | vertex_buffer |
Typedefs | |
| using | texture_format = bgfx::TextureFormat::Enum |
| using | init_type = bgfx::Init |
| using | view_id = bgfx::ViewId |
| using | renderer_type = bgfx::RendererType::Enum |
| using | backbuffer_ratio = bgfx::BackbufferRatio::Enum |
| using | memory_view = bgfx::Memory |
| using | texture_info = bgfx::TextureInfo |
| using | uniform_type = bgfx::UniformType::Enum |
| using | uniform_freq = bgfx::UniformFreq::Enum |
| using | uniform_info = bgfx::UniformInfo |
| using | attachment = bgfx::Attachment |
| using | platform_data = bgfx::PlatformData |
| using | caps = bgfx::Caps |
| using | stats = bgfx::Stats |
| using | access = bgfx::Access::Enum |
| using | view_mode = bgfx::ViewMode::Enum |
| using | occlusion_query_result = bgfx::OcclusionQueryResult::Enum |
| using | topology_conversion = bgfx::TopologyConvert::Enum |
| using | topology_sort = bgfx::TopologySort::Enum |
| using | topology = bgfx::Topology |
| using | release_fn = bgfx::ReleaseFn |
| using | encoder = bgfx::Encoder |
| using | shading_rate = bgfx::ShadingRate::Enum |
| using | transform = bgfx::Transform |
| using | dynamic_index_buffer_handle = bgfx::DynamicIndexBufferHandle |
| using | dynamic_vertex_buffer_handle = bgfx::DynamicVertexBufferHandle |
| using | frame_buffer_handle = bgfx::FrameBufferHandle |
| using | index_buffer_handle = bgfx::IndexBufferHandle |
| using | indirect_buffer_handle = bgfx::IndirectBufferHandle |
| using | occlusion_query_handle = bgfx::OcclusionQueryHandle |
| using | program_handle = bgfx::ProgramHandle |
| using | shader_handle = bgfx::ShaderHandle |
| using | texture_handle = bgfx::TextureHandle |
| using | uniform_handle = bgfx::UniformHandle |
| using | vertex_buffer_handle = bgfx::VertexBufferHandle |
| using | vertex_layout_handle = bgfx::VertexLayoutHandle |
| using | embedded_shader = bgfx::EmbeddedShader |
| using | transient_vertex_buffer = bgfx::TransientVertexBuffer |
| using | transient_index_buffer = bgfx::TransientIndexBuffer |
| using | instance_data_buffer = bgfx::InstanceDataBuffer |
| using | gfx_profiler_begin_hook |
| using | gfx_profiler_begin_literal_hook = gfx_profiler_begin_hook |
| using | gfx_profiler_end_hook = std::function<void()> |
| using | glyph_lut_t = stl::unordered_map<code_point, glyph_info> |
| using | code_point = uint32_t |
| Unicode value of a character. | |
| using | vertex_layout = bgfx::VertexLayout |
| using | attribute = bgfx::Attrib::Enum |
| using | attribute_type = bgfx::AttribType::Enum |
Enumerations | |
| enum class | evict_state : std::uint8_t { resident , evicted } |
| Residency state of a GPU resource tracked by the eviction system. More... | |
| enum class | evict_class : std::uint8_t { non_evictable , evictable } |
| Eviction eligibility of a tracked resource. More... | |
| enum class | allocation_failure_policy : std::uint8_t { warn_and_try , skip_with_fallback } |
| enum | text_style_flags { style_normal = 0 , style_overline = 1 , style_underline = 1 << 1 , style_strike_through = 1 << 2 , style_background = 1 << 3 , style_foreground = 1 << 4 } |
| special style effect (can be combined) More... | |
Functions | |
| void | draw_billboard (DebugDrawEncoder &dd, bgfx::TextureHandle icon_texture, const bx::Vec3 &icon_center, const bx::Vec3 &camera_pos, const bx::Vec3 &camera_look_dir, float half_size) |
| auto | get_best_float_format (std::uint16_t type_flags, std::uint32_t search_flags, bool requires_alpha, bool accept_padding, bool accept_half, bool accept_full) -> texture_format |
| auto | get_best_standard_format (std::uint16_t type_flags, std::uint32_t search_flags, bool requires_alpha, bool accept_padding) -> texture_format |
| auto | get_best_depth_format (std::uint16_t type_flags, std::uint32_t search_flags) -> texture_format |
| auto | get_best_format (std::uint16_t type_flags, std::uint32_t search_flags) -> texture_format |
| auto | get_default_rt_sampler_flags () -> uint64_t |
| auto | is_format_supported (uint16_t flags, texture_format format) -> bool |
| auto | get_format_info (texture_format fmt) -> format_details |
| auto | is_compressed_format (texture_format fmt) -> bool |
| auto | normal_map_needs_z_reconstruction (texture_format fmt) -> bool |
| auto | to_string (texture_format fmt) -> std::string |
| auto | is_format_supported (std::uint16_t flags, texture_format format) -> bool |
| auto | needs_recreate (const gfx::frame_buffer::ptr &fbo, const usize32_t &size) -> bool |
| void | set_trace_logger (const std::function< void(const std::string &, const char *, uint16_t)> &logger) |
| void | set_debug_logger (const std::function< void(const std::string &, const char *, uint16_t)> &logger) |
| void | set_info_logger (const std::function< void(const std::string &, const char *, uint16_t)> &logger) |
| void | set_warning_logger (const std::function< void(const std::string &, const char *, uint16_t)> &logger) |
| void | set_error_logger (const std::function< void(const std::string &, const char *, uint16_t)> &logger) |
| void | log (const std::string &category, const std::string &log_msg, const char *_filePath, uint16_t _line) |
| void | set_profiler_hooks (gfx_profiler_begin_hook on_begin, gfx_profiler_begin_literal_hook on_begin_literal, gfx_profiler_end_hook on_end) |
| void | clear_profiler_hooks () |
| void | set_platform_data (const platform_data &_data) |
| void | shutdown () |
| void | set_allocation_failure_policy (allocation_failure_policy policy) |
| auto | get_allocation_failure_policy () -> allocation_failure_policy |
| auto | fallback_texture () -> texture_handle |
| bool | init (init_type init_data) |
| void | vertex_pack (const float _input[4], bool _inputNormalized, attribute _attr, const vertex_layout &_decl, void *_data, uint32_t _index) |
| void | vertex_unpack (float _output[4], attribute _attr, const vertex_layout &_decl, const void *_data, uint32_t _index) |
| void | vertex_convert (const vertex_layout &_destDecl, void *_destData, const vertex_layout &_srcDecl, const void *_srcData, uint32_t _num) |
| uint32_t | topology_convert (topology_conversion _conversion, void *_dst, uint32_t _dstSize, const void *_indices, uint32_t _numIndices, bool _index32) |
| void | topology_sort_tri_list (topology_sort _sort, void *_dst, uint32_t _dstSize, const float _dir[], const float _pos[], const void *_vertices, uint32_t _stride, const void *_indices, uint32_t _numIndices, bool _index32) |
| shader_handle | create_embedded_shader (const embedded_shader *_es, renderer_type _type, const char *_name) |
| uint8_t | get_supported_renderers (uint8_t _max, renderer_type *_enum) |
| const char * | get_renderer_name (renderer_type _type) |
| void | reset (uint32_t _width, uint32_t _height, uint32_t _flags) |
| encoder * | begin () |
| void | end (encoder *_encoder) |
| uint32_t | frame (uint8_t _flags) |
| renderer_type | get_renderer_type () |
| const caps * | get_caps () |
| const stats * | get_stats () |
| const memory_view * | alloc (uint32_t _size) |
| const memory_view * | copy (const void *_data, uint32_t _size) |
| const memory_view * | make_ref (const void *_data, uint32_t _size, release_fn _releaseFn, void *_userData) |
| void | set_debug (uint32_t _debug) |
| void | dbg_text_clear (uint8_t _attr, bool _small) |
| void | dbg_text_printf (uint16_t _x, uint16_t _y, uint8_t _attr, const char *_format) |
| void | dbg_text_vprintf (uint16_t _x, uint16_t _y, uint8_t _attr, const char *_format, va_list _argList) |
| void | dbg_text_image (uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height, const void *_data, uint16_t _pitch) |
| index_buffer_handle | create_index_buffer (const memory_view *_mem, uint16_t _flags) |
| void | set_name (index_buffer_handle _handle, const char *_name, int32_t _len) |
| void | destroy (index_buffer_handle _handle) |
| vertex_buffer_handle | create_vertex_buffer (const memory_view *_mem, const vertex_layout &_decl, uint16_t _flags) |
| void | destroy (vertex_buffer_handle _handle) |
| void | set_name (vertex_buffer_handle _handle, const char *_name, int32_t _len) |
| dynamic_index_buffer_handle | create_dynamic_index_buffer (uint32_t _num, uint16_t _flags) |
| dynamic_index_buffer_handle | create_dynamic_index_buffer (const memory_view *_mem, uint16_t _flags) |
| void | update (dynamic_index_buffer_handle _handle, uint32_t _startIndex, const memory_view *_mem) |
| void | destroy (dynamic_index_buffer_handle _handle) |
| dynamic_vertex_buffer_handle | create_dynamic_vertex_buffer (uint32_t _num, const vertex_layout &_decl, uint16_t _flags) |
| dynamic_vertex_buffer_handle | create_dynamic_vertex_buffer (const memory_view *_mem, const vertex_layout &_decl, uint16_t _flags) |
| void | update (dynamic_vertex_buffer_handle _handle, uint32_t _startVertex, const memory_view *_mem) |
| void | destroy (dynamic_vertex_buffer_handle _handle) |
| uint32_t | get_avail_transient_index_buffer (uint32_t _num, bool _index32) |
| uint32_t | get_avail_transient_vertex_buffer (uint32_t _num, const vertex_layout &_decl) |
| uint32_t | get_avail_instance_data_buffer (uint32_t _num, uint16_t _stride) |
| void | alloc_transient_index_buffer (transient_index_buffer *_tib, uint32_t _num, bool _index32) |
| void | alloc_transient_vertex_buffer (transient_vertex_buffer *_tvb, uint32_t _num, const vertex_layout &_decl) |
| bool | alloc_transient_buffers (transient_vertex_buffer *_tvb, const vertex_layout &_decl, uint32_t _numVertices, transient_index_buffer *_tib, uint32_t _numIndices) |
| void | alloc_instance_data_buffer (instance_data_buffer *_idb, uint32_t _num, uint16_t _stride) |
| indirect_buffer_handle | create_indirect_buffer (uint32_t _num) |
| void | destroy (indirect_buffer_handle _handle) |
| shader_handle | create_shader (const memory_view *_mem) |
| uint16_t | get_shader_uniforms (shader_handle _handle, uniform_handle *_uniforms, uint16_t _max) |
| void | get_uniform_info (uniform_handle _handle, uniform_info &_info) |
| void | set_name (shader_handle _handle, const char *_name, int32_t _len) |
| void | destroy (shader_handle _handle) |
| program_handle | create_program (shader_handle _vsh, shader_handle _fsh, bool _destroyShaders) |
| program_handle | create_program (shader_handle _csh, bool _destroyShaders) |
| void | destroy (program_handle _handle) |
| bool | is_texture_valid (uint16_t _depth, bool _cubeMap, uint16_t _numLayers, texture_format _format, uint64_t _flags) |
| void | calc_texture_size (texture_info &_info, uint16_t _width, uint16_t _height, uint16_t _depth, bool _cubeMap, bool _hasMips, uint16_t _numLayers, texture_format _format) |
| texture_handle | create_texture (const memory_view *_mem, uint64_t _flags, uint8_t _skip, texture_info *_info) |
| texture_handle | create_texture_2d (uint16_t _width, uint16_t _height, bool _hasMips, uint16_t _numLayers, texture_format _format, uint64_t _flags, const memory_view *_mem) |
| texture_handle | create_texture_2d (backbuffer_ratio _ratio, bool _hasMips, uint16_t _numLayers, texture_format _format, uint64_t _flags) |
| texture_handle | create_texture_3d (uint16_t _width, uint16_t _height, uint16_t _depth, bool _hasMips, texture_format _format, uint64_t _flags, const memory_view *_mem) |
| texture_handle | create_texture_cube (uint16_t _size, bool _hasMips, uint16_t _numLayers, texture_format _format, uint64_t _flags, const memory_view *_mem) |
| void | update_texture_2d (texture_handle _handle, uint16_t _layer, uint8_t _mip, uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height, const memory_view *_mem, uint16_t _pitch) |
| void | update_texture_3d (texture_handle _handle, uint8_t _mip, uint16_t _x, uint16_t _y, uint16_t _z, uint16_t _width, uint16_t _height, uint16_t _depth, const memory_view *_mem) |
| void | update_texture_cube (texture_handle _handle, uint16_t _layer, uint8_t _side, uint8_t _mip, uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height, const memory_view *_mem, uint16_t _pitch) |
| uint32_t | read_texture (texture_handle _handle, void *_data, uint16_t _layer, uint8_t _mip) |
| void | set_name (texture_handle _handle, const char *_name, int32_t _len) |
| void | destroy (texture_handle _handle) |
| frame_buffer_handle | create_frame_buffer (uint16_t _width, uint16_t _height, texture_format _format, uint64_t _textureFlags) |
| frame_buffer_handle | create_frame_buffer (backbuffer_ratio _ratio, texture_format _format, uint64_t _textureFlags) |
| frame_buffer_handle | create_frame_buffer (uint8_t _num, const texture_handle *_handles, bool _destroyTextures) |
| frame_buffer_handle | create_frame_buffer (uint8_t _num, const attachment *_attachment, bool _destroyTextures) |
| frame_buffer_handle | create_frame_buffer (void *_nwh, uint16_t _width, uint16_t _height, texture_format _format, texture_format _depthFormat) |
| texture_handle | get_texture (frame_buffer_handle _handle, uint8_t _attachment) |
| void | set_name (frame_buffer_handle _handle, const char *_name, int32_t _len) |
| void | destroy (frame_buffer_handle _handle) |
| uniform_handle | create_uniform (const char *_name, uniform_type _type, uint16_t _num) |
| void | destroy (uniform_handle _handle) |
| occlusion_query_handle | create_occlusion_query () |
| occlusion_query_result | get_result (occlusion_query_handle _handle, int32_t *_result) |
| void | destroy (occlusion_query_handle _handle) |
| void | set_palette_color (uint8_t _index, uint32_t _rgba) |
| void | set_palette_color (uint8_t _index, const float _rgba[]) |
| void | set_palette_color (uint8_t _index, float _r, float _g, float _b, float _a) |
| void | set_view_name (view_id _id, const char *_name) |
| void | set_view_rect (view_id _id, uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height) |
| void | set_view_rect (view_id _id, uint16_t _x, uint16_t _y, backbuffer_ratio _ratio) |
| void | set_view_scissor (view_id _id, uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height) |
| void | set_view_clear (view_id _id, uint16_t _flags, uint32_t _rgba, float _depth, uint8_t _stencil) |
| void | set_view_clear (view_id _id, uint16_t _flags, float _depth, uint8_t _stencil, uint8_t _0, uint8_t _1, uint8_t _2, uint8_t _3, uint8_t _4, uint8_t _5, uint8_t _6, uint8_t _7) |
| void | set_view_mode (view_id _id, view_mode _mode) |
| void | set_view_frame_buffer (view_id _id, frame_buffer_handle _handle) |
| void | set_view_transform (view_id _id, const void *_view, const void *_proj) |
| void | set_view_order (view_id _id, uint16_t _num, const view_id *_order) |
| void | set_view_shading_rate (view_id _id, shading_rate _shadingRate) |
| void | reset_view (view_id _id) |
| void | set_marker (const char *_marker) |
| void | set_state (uint64_t _state, uint32_t _rgba) |
| void | set_condition (occlusion_query_handle _handle, bool _visible) |
| void | set_stencil (uint32_t _fstencil, uint32_t _bstencil) |
| uint16_t | set_scissor (uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height) |
| void | set_scissor (uint16_t _cache) |
| uint32_t | set_transform (const void *_mtx, uint16_t _num) |
| uint32_t | alloc_transform (transform *_transform, uint16_t _num) |
| void | set_transform (uint32_t _cache, uint16_t _num) |
| void | set_uniform (uniform_handle _handle, const void *_value, uint16_t _num) |
| void | set_view_uniform (view_id _id, uniform_handle _handle, const void *_value, uint16_t _num) |
| void | set_frame_uniform (uniform_handle _handle, const void *_value, uint16_t _num) |
| void | set_index_buffer (index_buffer_handle _handle) |
| void | set_index_buffer (index_buffer_handle _handle, uint32_t _firstIndex, uint32_t _numIndices) |
| void | set_index_buffer (dynamic_index_buffer_handle _handle) |
| void | set_index_buffer (dynamic_index_buffer_handle _handle, uint32_t _firstIndex, uint32_t _numIndices) |
| void | set_index_buffer (const transient_index_buffer *_tib) |
| void | set_index_buffer (const transient_index_buffer *_tib, uint32_t _firstIndex, uint32_t _numIndices) |
| void | set_vertex_buffer (uint8_t _stream, vertex_buffer_handle _handle) |
| void | set_vertex_buffer (uint8_t _stream, vertex_buffer_handle _handle, uint32_t _startVertex, uint32_t _numVertices) |
| void | set_vertex_buffer (uint8_t _stream, dynamic_vertex_buffer_handle _handle) |
| void | set_vertex_buffer (uint8_t _stream, dynamic_vertex_buffer_handle _handle, uint32_t _startVertex, uint32_t _numVertices) |
| void | set_vertex_buffer (uint8_t _stream, const transient_vertex_buffer *_tvb) |
| void | set_vertex_buffer (uint8_t _stream, const transient_vertex_buffer *_tvb, uint32_t _startVertex, uint32_t _numVertices) |
| void | set_vertex_count (uint32_t _numVertices) |
| void | set_instance_data_buffer (const instance_data_buffer *_idb, uint32_t _start, uint32_t _num) |
| void | set_instance_data_buffer (vertex_buffer_handle _handle, uint32_t _startVertex, uint32_t _num) |
| void | set_instance_data_buffer (dynamic_vertex_buffer_handle _handle, uint32_t _startVertex, uint32_t _num) |
| void | set_texture (uint8_t _stage, uniform_handle _sampler, texture_handle _handle, uint32_t _flags) |
| void | touch (view_id _id) |
| void | submit (view_id _id, program_handle _handle, int32_t _depth, bool _preserveState) |
| void | submit (view_id _id, program_handle _program, occlusion_query_handle _occlusionQuery, int32_t _depth, bool _preserveState) |
| void | submit (view_id _id, program_handle _handle, indirect_buffer_handle _indirectHandle, uint16_t _start, uint16_t _num, int32_t _depth, bool _preserveState) |
| void | set_image (uint8_t _stage, texture_handle _handle, uint8_t _mip, access _access, texture_format _format) |
| void | set_buffer (uint8_t _stage, index_buffer_handle _handle, access _access) |
| void | set_buffer (uint8_t _stage, vertex_buffer_handle _handle, access _access) |
| void | set_buffer (uint8_t _stage, dynamic_index_buffer_handle _handle, access _access) |
| void | set_buffer (uint8_t _stage, dynamic_vertex_buffer_handle _handle, access _access) |
| void | set_buffer (uint8_t _stage, indirect_buffer_handle _handle, access _access) |
| void | dispatch (view_id _id, program_handle _handle, uint32_t _numX, uint32_t _numY, uint32_t _numZ) |
| void | dispatch (view_id _id, program_handle _handle, indirect_buffer_handle _indirectHandle, uint16_t _start, uint16_t _num) |
| void | discard (uint8_t _flags) |
| void | blit (view_id _id, texture_handle _dst, uint16_t _dstX, uint16_t _dstY, texture_handle _src, uint16_t _srcX, uint16_t _srcY, uint16_t _width, uint16_t _height) |
| void | blit (view_id _id, texture_handle _dst, uint8_t _dstMip, uint16_t _dstX, uint16_t _dstY, uint16_t _dstZ, texture_handle _src, uint8_t _srcMip, uint16_t _srcX, uint16_t _srcY, uint16_t _srcZ, uint16_t _width, uint16_t _height, uint16_t _depth) |
| void | request_screen_shot (frame_buffer_handle _handle, const char *_filePath) |
| void | frames (int _count, int32_t _flags) |
| auto | screen_quad (float dest_width, float dest_height, float depth, float width, float height) -> uint64_t |
| auto | clip_fullscreen_triangle (float depth, float width, float height) -> uint64_t |
| auto | clip_quad (float depth, float width, float height) -> uint64_t |
| uint64_t | clip_quad_ex (const clip_quad_def &def) |
| void | get_size_from_ratio (backbuffer_ratio _ratio, uint16_t &_width, uint16_t &_height) |
| auto | get_renderer_filename_extension (renderer_type _type) -> const std::string & |
| auto | get_current_renderer_filename_extension () -> const std::string & |
| auto | get_renderer_platform_supported_filename_extensions () -> const std::set< std::string > & |
| auto | get_renderer_based_on_filename_extension (const std::string &_type) -> renderer_type |
| auto | is_homogeneous_depth () -> bool |
| auto | is_origin_bottom_left () -> bool |
| auto | get_max_blend_transforms () -> uint32_t |
| auto | get_half_texel () -> float |
| auto | is_supported (uint64_t flag) -> bool |
| bool | check_avail_transient_buffers (uint32_t _numVertices, const vertex_layout &_layout, uint32_t _numIndices, bool _index32) |
| uint32_t | get_render_frame () |
| void | set_world_transform (const void *_mtx, uint16_t _num) |
| uint64_t | estimate_texture_gpu_size (const texture_info &_info, uint64_t _flags) |
| void | topology_sort_tri_list (topology_sort _sort, void *_dst, uint32_t _dstSize, const float _dir[3], const float _pos[3], const void *_vertices, uint32_t _stride, const void *_indices, uint32_t _numIndices, bool _index32) |
| void | dbg_text_printf (uint16_t _x, uint16_t _y, uint8_t _attr, const char *_format,...) |
| uniform_handle | create_uniform (const char *_name, uniform_freq _freq, uniform_type _type, uint16_t _num=1) |
| void | set_palette_color (uint8_t _index, const float _rgba[4]) |
| void | dispatch_indirect (view_id _id, program_handle _handle, indirect_buffer_handle _indirectHandle, uint16_t _start=0, uint16_t _num=1) |
| void | set_trace_logger (const std::function< void(const std::string &, const char *_filePath, uint16_t _line)> &logger) |
| void | set_info_logger (const std::function< void(const std::string &, const char *_filePath, uint16_t _line)> &logger) |
| void | set_warning_logger (const std::function< void(const std::string &, const char *_filePath, uint16_t _line)> &logger) |
| void | set_error_logger (const std::function< void(const std::string &, const char *_filePath, uint16_t _line)> &logger) |
| void | set_debug_logger (const std::function< void(const std::string &, const char *_filePath, uint16_t _line)> &logger) |
| bool | operator== (const texture_key &key1, const texture_key &key2) |
| bool | operator== (const fbo_key &key1, const fbo_key &key2) |
| auto | needs_recreate (const gfx::texture::ptr &tex, const usize32_t &size) -> bool |
| auto | needs_recreate (const gfx::texture::ptr &tex, const usize32_t &size, const texture_format &format) -> bool |
| void | deinit_uniform_cache () |
| static void | writeUV (uint8_t *_vertexBuffer, int16_t _x, int16_t _y, int16_t _z, int16_t _w) |
| auto | add_white_glyph (Atlas *atlas, uint32_t size) -> glyph_info |
| REFLECT (texture_info) | |
| REFLECT_EXTERN (texture_info) | |
| void | set_world_transform (const std::vector< math::transform::mat4_t > &matrices) |
| Sets the transformation matrices. | |
| void | set_world_transform (const std::vector< math::transform > &matrices) |
| Sets the transformations. | |
| void | set_world_transform (const math::transform::mat4_t &matrix) |
| Sets the transformation matrix. | |
| void | set_world_transform (const math::transform &matrix) |
| Sets the transformation. | |
| void | set_transform (const std::vector< math::transform::mat4_t > &matrices) |
| void | set_transform (const std::vector< math::transform > &matrices) |
| void | set_transform (const math::transform::mat4_t &matrix) |
| void | set_transform (const math::transform &matrix) |
| void | set_texture (const gfx::program::uniform_ptr &uniform, std::uint8_t stage, const gfx::frame_buffer::ptr &handle, uint8_t attachment=0, std::uint32_t flags=std::numeric_limits< std::uint32_t >::max()) |
| Sets the texture for a specific stage using a frame buffer. | |
| void | set_texture (const gfx::program::uniform_ptr &uniform, std::uint8_t stage, const gfx::texture::ptr &texture, std::uint32_t flags=std::numeric_limits< std::uint32_t >::max()) |
| Sets the texture for a specific stage using a texture. | |
| void | set_texture (const gfx::program::uniform_ptr &uniform, std::uint8_t stage, const gfx::frame_buffer *handle, uint8_t attachment=0, std::uint32_t flags=std::numeric_limits< std::uint32_t >::max()) |
| Sets the texture for a specific stage using a frame buffer. | |
| void | set_texture (const gfx::program::uniform_ptr &uniform, std::uint8_t stage, const gfx::texture *texture, std::uint32_t flags=std::numeric_limits< std::uint32_t >::max()) |
| Sets the texture for a specific stage using a texture. | |
| void | set_texture (const gfx::program::uniform_ptr &uniform, std::uint8_t stage, const asset_handle< gfx::texture > &texture, std::uint32_t flags=std::numeric_limits< std::uint32_t >::max()) |
| Sets the texture for a specific stage using a texture. | |
| void | set_uniform (const gfx::program::uniform_ptr &uniform, const void *value, std::uint16_t num=1) |
| Sets a uniform value. | |
| void | set_uniform (const gfx::program::uniform_ptr &uniform, const math::mat4 &value, std::uint16_t num=1) |
| Sets a uniform value. | |
| void | set_uniform (const gfx::program::uniform_ptr &uniform, const math::vec4 &value, std::uint16_t num=1) |
| Sets a uniform value. | |
| void | set_uniform (const gfx::program::uniform_ptr &uniform, const math::vec3 &value, std::uint16_t num=1) |
| Sets a uniform value. | |
| void | set_uniform (const gfx::program::uniform_ptr &uniform, const math::vec2 &value, std::uint16_t num=1) |
| Sets a uniform value. | |
Variables | |
| static const uint16_t | invalid_handle = bgfx::kInvalidHandle |
| static const bgfx::EmbeddedShader | s_embedded_shaders [] |
Inspired from texture-atlas from freetype-gl (http://code.google.com/p/freetype-gl/) by Nicolas Rougier (Nicol.nosp@m.as.R.nosp@m.ougie.nosp@m.r@in.nosp@m.ria.f.nosp@m.r) The actual implementation is based on the article by Jukka Jylänki : "A Thousand Ways to Pack the Bin - A Practical Approach to Two-Dimensional Rectangle Bin Packing", February 27, 2010. More precisely, this is an implementation of the Skyline Bottom-Left algorithm based on C++ sources provided by Jukka Jylänki at: http://clb.demon.fi/files/RectangleBinPack/
| using gfx::access = bgfx::Access::Enum |
Definition at line 32 of file graphics.h.
| using gfx::attachment = bgfx::Attachment |
Definition at line 28 of file graphics.h.
| using gfx::attribute = bgfx::Attrib::Enum |
Definition at line 9 of file vertex_decl.h.
| using gfx::attribute_type = bgfx::AttribType::Enum |
Definition at line 10 of file vertex_decl.h.
| using gfx::backbuffer_ratio = bgfx::BackbufferRatio::Enum |
Definition at line 22 of file graphics.h.
| using gfx::caps = bgfx::Caps |
Definition at line 30 of file graphics.h.
| using gfx::code_point = uint32_t |
Unicode value of a character.
Definition at line 92 of file font_manager.h.
| using gfx::dynamic_index_buffer_handle = bgfx::DynamicIndexBufferHandle |
Definition at line 43 of file graphics.h.
| using gfx::dynamic_vertex_buffer_handle = bgfx::DynamicVertexBufferHandle |
Definition at line 44 of file graphics.h.
| using gfx::embedded_shader = bgfx::EmbeddedShader |
Definition at line 55 of file graphics.h.
| using gfx::encoder = bgfx::Encoder |
Definition at line 39 of file graphics.h.
| using gfx::frame_buffer_handle = bgfx::FrameBufferHandle |
Definition at line 45 of file graphics.h.
Hooks for bgfx::CallbackI::profilerBegin / profilerBeginLiteral / profilerEnd. The graphics layer only forwards events; pair nested begin/end and any token stack in the code that installs hooks.
Definition at line 668 of file graphics.h.
Definition at line 670 of file graphics.h.
| using gfx::gfx_profiler_end_hook = std::function<void()> |
Definition at line 671 of file graphics.h.
| using gfx::glyph_lut_t = stl::unordered_map<code_point, glyph_info> |
Definition at line 367 of file font_manager.cpp.
| using gfx::index_buffer_handle = bgfx::IndexBufferHandle |
Definition at line 46 of file graphics.h.
| using gfx::indirect_buffer_handle = bgfx::IndirectBufferHandle |
Definition at line 47 of file graphics.h.
| using gfx::init_type = bgfx::Init |
Definition at line 19 of file graphics.h.
| using gfx::instance_data_buffer = bgfx::InstanceDataBuffer |
Definition at line 58 of file graphics.h.
| using gfx::memory_view = bgfx::Memory |
Definition at line 23 of file graphics.h.
| using gfx::occlusion_query_handle = bgfx::OcclusionQueryHandle |
Definition at line 48 of file graphics.h.
| using gfx::occlusion_query_result = bgfx::OcclusionQueryResult::Enum |
Definition at line 34 of file graphics.h.
| using gfx::platform_data = bgfx::PlatformData |
Definition at line 29 of file graphics.h.
| using gfx::program_handle = bgfx::ProgramHandle |
Definition at line 49 of file graphics.h.
| using gfx::release_fn = bgfx::ReleaseFn |
Definition at line 38 of file graphics.h.
| using gfx::renderer_type = bgfx::RendererType::Enum |
Definition at line 21 of file graphics.h.
| using gfx::shader_handle = bgfx::ShaderHandle |
Definition at line 50 of file graphics.h.
| using gfx::shading_rate = bgfx::ShadingRate::Enum |
Definition at line 40 of file graphics.h.
| using gfx::stats = bgfx::Stats |
Definition at line 31 of file graphics.h.
| using gfx::texture_format = bgfx::TextureFormat::Enum |
| using gfx::texture_handle = bgfx::TextureHandle |
Definition at line 51 of file graphics.h.
| using gfx::texture_info = bgfx::TextureInfo |
Definition at line 24 of file graphics.h.
| using gfx::topology = bgfx::Topology |
Definition at line 37 of file graphics.h.
| using gfx::topology_conversion = bgfx::TopologyConvert::Enum |
Definition at line 35 of file graphics.h.
| using gfx::topology_sort = bgfx::TopologySort::Enum |
Definition at line 36 of file graphics.h.
| using gfx::transform = bgfx::Transform |
Definition at line 42 of file graphics.h.
| using gfx::transient_index_buffer = bgfx::TransientIndexBuffer |
Definition at line 57 of file graphics.h.
| using gfx::transient_vertex_buffer = bgfx::TransientVertexBuffer |
Definition at line 56 of file graphics.h.
| using gfx::uniform_freq = bgfx::UniformFreq::Enum |
Definition at line 26 of file graphics.h.
| using gfx::uniform_handle = bgfx::UniformHandle |
Definition at line 52 of file graphics.h.
| using gfx::uniform_info = bgfx::UniformInfo |
Definition at line 27 of file graphics.h.
| using gfx::uniform_type = bgfx::UniformType::Enum |
Definition at line 25 of file graphics.h.
| using gfx::vertex_buffer_handle = bgfx::VertexBufferHandle |
Definition at line 53 of file graphics.h.
| using gfx::vertex_layout = bgfx::VertexLayout |
Definition at line 8 of file vertex_decl.h.
| using gfx::vertex_layout_handle = bgfx::VertexLayoutHandle |
Definition at line 54 of file graphics.h.
| using gfx::view_id = bgfx::ViewId |
Definition at line 20 of file graphics.h.
| using gfx::view_mode = bgfx::ViewMode::Enum |
Definition at line 33 of file graphics.h.
|
strong |
Policy when eviction::reclaim_for reports insufficient headroom before a GPU texture allocation (render targets / compute-write surfaces).
| Enumerator | |
|---|---|
| warn_and_try | Log a warning and attempt the allocation anyway (default). |
| skip_with_fallback | Skip the allocation; texture::native_handle binds the fallback texture. |
Definition at line 70 of file graphics.h.
|
strong |
Eviction eligibility of a tracked resource.
| Enumerator | |
|---|---|
| non_evictable | No CPU backing (render targets, uniforms, ...). Never registered. |
| evictable | May be evicted by a sweep. |
Definition at line 16 of file evictable.h.
|
strong |
Residency state of a GPU resource tracked by the eviction system.
| Enumerator | |
|---|---|
| resident | GPU handle is live and usable. |
| evicted | GPU handle was destroyed; a CPU-side backing is retained for restore. |
Definition at line 9 of file evictable.h.
special style effect (can be combined)
| Enumerator | |
|---|---|
| style_normal | |
| style_overline | |
| style_underline | |
| style_strike_through | |
| style_background | |
| style_foreground | |
Definition at line 29 of file text_buffer_manager.h.
| auto gfx::add_white_glyph | ( | Atlas * | atlas, |
| uint32_t | size ) -> glyph_info |
make sure the white glyph doesn't bleed by using a one pixel inner outline
Definition at line 383 of file font_manager.cpp.
| const memory_view * gfx::alloc | ( | uint32_t | _size | ) |
Definition at line 455 of file graphics.cpp.
| void gfx::alloc_instance_data_buffer | ( | instance_data_buffer * | _idb, |
| uint32_t | _num, | ||
| uint16_t | _stride ) |
Definition at line 601 of file graphics.cpp.
| uint32_t gfx::alloc_transform | ( | transform * | _transform, |
| uint16_t | _num ) |
Definition at line 967 of file graphics.cpp.
| bool gfx::alloc_transient_buffers | ( | transient_vertex_buffer * | _tvb, |
| const vertex_layout & | _decl, | ||
| uint32_t | _numVertices, | ||
| transient_index_buffer * | _tib, | ||
| uint32_t | _numIndices ) |
Definition at line 592 of file graphics.cpp.
| void gfx::alloc_transient_index_buffer | ( | transient_index_buffer * | _tib, |
| uint32_t | _num, | ||
| bool | _index32 ) |
Definition at line 582 of file graphics.cpp.
| void gfx::alloc_transient_vertex_buffer | ( | transient_vertex_buffer * | _tvb, |
| uint32_t | _num, | ||
| const vertex_layout & | _decl ) |
Definition at line 587 of file graphics.cpp.
| encoder * gfx::begin | ( | ) |
Definition at line 422 of file graphics.cpp.
| void gfx::blit | ( | view_id | _id, |
| texture_handle | _dst, | ||
| uint16_t | _dstX, | ||
| uint16_t | _dstY, | ||
| texture_handle | _src, | ||
| uint16_t | _srcX, | ||
| uint16_t | _srcY, | ||
| uint16_t | _width, | ||
| uint16_t | _height ) |
Definition at line 1162 of file graphics.cpp.
| void gfx::blit | ( | view_id | _id, |
| texture_handle | _dst, | ||
| uint8_t | _dstMip, | ||
| uint16_t | _dstX, | ||
| uint16_t | _dstY, | ||
| uint16_t | _dstZ, | ||
| texture_handle | _src, | ||
| uint8_t | _srcMip, | ||
| uint16_t | _srcX, | ||
| uint16_t | _srcY, | ||
| uint16_t | _srcZ, | ||
| uint16_t | _width, | ||
| uint16_t | _height, | ||
| uint16_t | _depth ) |
Definition at line 1175 of file graphics.cpp.
| void gfx::calc_texture_size | ( | texture_info & | _info, |
| uint16_t | _width, | ||
| uint16_t | _height, | ||
| uint16_t | _depth, | ||
| bool | _cubeMap, | ||
| bool | _hasMips, | ||
| uint16_t | _numLayers, | ||
| texture_format | _format ) |
Definition at line 661 of file graphics.cpp.
| bool gfx::check_avail_transient_buffers | ( | uint32_t | _numVertices, |
| const vertex_layout & | _layout, | ||
| uint32_t | _numIndices, | ||
| bool | _index32 ) |
Definition at line 1581 of file graphics.cpp.
| void gfx::clear_profiler_hooks | ( | ) |
Definition at line 266 of file graphics.cpp.
| uint64_t gfx::clip_fullscreen_triangle | ( | float | depth = 0.0f, |
| float | width = 1.0f, | ||
| float | height = 1.0f ) |
Single large triangle covering the clip rect (same UV convention as clip_quad). Use for fullscreen passes that must not have a quad diagonal (e.g. SSIL half-res trace). Returns 0 if transient VB allocation failed — fall back to clip_quad in that case.
Definition at line 1270 of file graphics.cpp.
| uint64_t gfx::clip_quad | ( | float | depth, |
| float | width, | ||
| float | height ) -> uint64_t |
Definition at line 1327 of file graphics.cpp.
| uint64_t gfx::clip_quad_ex | ( | const clip_quad_def & | def | ) |
Definition at line 1389 of file graphics.cpp.
| const memory_view * gfx::copy | ( | const void * | _data, |
| uint32_t | _size ) |
Definition at line 460 of file graphics.cpp.
| dynamic_index_buffer_handle gfx::create_dynamic_index_buffer | ( | const memory_view * | _mem, |
| uint16_t | _flags ) |
Definition at line 530 of file graphics.cpp.
| dynamic_index_buffer_handle gfx::create_dynamic_index_buffer | ( | uint32_t | _num, |
| uint16_t | _flags ) |
Definition at line 525 of file graphics.cpp.
| dynamic_vertex_buffer_handle gfx::create_dynamic_vertex_buffer | ( | const memory_view * | _mem, |
| const vertex_layout & | _decl, | ||
| uint16_t | _flags ) |
Definition at line 550 of file graphics.cpp.
| dynamic_vertex_buffer_handle gfx::create_dynamic_vertex_buffer | ( | uint32_t | _num, |
| const vertex_layout & | _decl, | ||
| uint16_t | _flags ) |
Definition at line 545 of file graphics.cpp.
| shader_handle gfx::create_embedded_shader | ( | const embedded_shader * | _es, |
| renderer_type | _type, | ||
| const char * | _name ) |
Definition at line 402 of file graphics.cpp.
| frame_buffer_handle gfx::create_frame_buffer | ( | backbuffer_ratio | _ratio, |
| texture_format | _format, | ||
| uint64_t | _textureFlags ) |
Definition at line 782 of file graphics.cpp.
| frame_buffer_handle gfx::create_frame_buffer | ( | uint16_t | _width, |
| uint16_t | _height, | ||
| texture_format | _format, | ||
| uint64_t | _textureFlags ) |
Definition at line 774 of file graphics.cpp.
| frame_buffer_handle gfx::create_frame_buffer | ( | uint8_t | _num, |
| const attachment * | _attachment, | ||
| bool | _destroyTextures ) |
Definition at line 792 of file graphics.cpp.
| frame_buffer_handle gfx::create_frame_buffer | ( | uint8_t | _num, |
| const texture_handle * | _handles, | ||
| bool | _destroyTextures ) |
Definition at line 787 of file graphics.cpp.
| frame_buffer_handle gfx::create_frame_buffer | ( | void * | _nwh, |
| uint16_t | _width, | ||
| uint16_t | _height, | ||
| texture_format | _format, | ||
| texture_format | _depthFormat ) |
Definition at line 797 of file graphics.cpp.
| index_buffer_handle gfx::create_index_buffer | ( | const memory_view * | _mem, |
| uint16_t | _flags ) |
Definition at line 495 of file graphics.cpp.
| indirect_buffer_handle gfx::create_indirect_buffer | ( | uint32_t | _num | ) |
Definition at line 606 of file graphics.cpp.
| occlusion_query_handle gfx::create_occlusion_query | ( | ) |
Definition at line 831 of file graphics.cpp.
| program_handle gfx::create_program | ( | shader_handle | _csh, |
| bool | _destroyShaders ) |
Definition at line 646 of file graphics.cpp.
| program_handle gfx::create_program | ( | shader_handle | _vsh, |
| shader_handle | _fsh, | ||
| bool | _destroyShaders ) |
Definition at line 641 of file graphics.cpp.
| shader_handle gfx::create_shader | ( | const memory_view * | _mem | ) |
Definition at line 616 of file graphics.cpp.
| texture_handle gfx::create_texture | ( | const memory_view * | _mem, |
| uint64_t | _flags, | ||
| uint8_t | _skip, | ||
| texture_info * | _info ) |
Definition at line 673 of file graphics.cpp.
| texture_handle gfx::create_texture_2d | ( | backbuffer_ratio | _ratio, |
| bool | _hasMips, | ||
| uint16_t | _numLayers, | ||
| texture_format | _format, | ||
| uint64_t | _flags ) |
Definition at line 689 of file graphics.cpp.
| texture_handle gfx::create_texture_2d | ( | uint16_t | _width, |
| uint16_t | _height, | ||
| bool | _hasMips, | ||
| uint16_t | _numLayers, | ||
| texture_format | _format, | ||
| uint64_t | _flags, | ||
| const memory_view * | _mem ) |
Definition at line 678 of file graphics.cpp.
| texture_handle gfx::create_texture_3d | ( | uint16_t | _width, |
| uint16_t | _height, | ||
| uint16_t | _depth, | ||
| bool | _hasMips, | ||
| texture_format | _format, | ||
| uint64_t | _flags, | ||
| const memory_view * | _mem ) |
Definition at line 698 of file graphics.cpp.
| texture_handle gfx::create_texture_cube | ( | uint16_t | _size, |
| bool | _hasMips, | ||
| uint16_t | _numLayers, | ||
| texture_format | _format, | ||
| uint64_t | _flags, | ||
| const memory_view * | _mem ) |
Definition at line 709 of file graphics.cpp.
| uniform_handle gfx::create_uniform | ( | const char * | _name, |
| uniform_freq | _freq, | ||
| uniform_type | _type, | ||
| uint16_t | _num = 1 ) |
| uniform_handle gfx::create_uniform | ( | const char * | _name, |
| uniform_type | _type, | ||
| uint16_t | _num ) |
Definition at line 821 of file graphics.cpp.
| vertex_buffer_handle gfx::create_vertex_buffer | ( | const memory_view * | _mem, |
| const vertex_layout & | _decl, | ||
| uint16_t | _flags ) |
Definition at line 510 of file graphics.cpp.
| void gfx::dbg_text_clear | ( | uint8_t | _attr, |
| bool | _small ) |
Definition at line 475 of file graphics.cpp.
| void gfx::dbg_text_image | ( | uint16_t | _x, |
| uint16_t | _y, | ||
| uint16_t | _width, | ||
| uint16_t | _height, | ||
| const void * | _data, | ||
| uint16_t | _pitch ) |
Definition at line 490 of file graphics.cpp.
| void gfx::dbg_text_printf | ( | uint16_t | _x, |
| uint16_t | _y, | ||
| uint8_t | _attr, | ||
| const char * | _format ) |
Definition at line 480 of file graphics.cpp.
| void gfx::dbg_text_printf | ( | uint16_t | _x, |
| uint16_t | _y, | ||
| uint8_t | _attr, | ||
| const char * | _format, | ||
| ... ) |
| void gfx::dbg_text_vprintf | ( | uint16_t | _x, |
| uint16_t | _y, | ||
| uint8_t | _attr, | ||
| const char * | _format, | ||
| va_list | _argList ) |
Definition at line 485 of file graphics.cpp.
| void gfx::deinit_uniform_cache | ( | ) |
Definition at line 60 of file uniform.cpp.
| void gfx::destroy | ( | dynamic_index_buffer_handle | _handle | ) |
Definition at line 540 of file graphics.cpp.
| void gfx::destroy | ( | dynamic_vertex_buffer_handle | _handle | ) |
Definition at line 562 of file graphics.cpp.
| void gfx::destroy | ( | frame_buffer_handle | _handle | ) |
Definition at line 816 of file graphics.cpp.
| void gfx::destroy | ( | index_buffer_handle | _handle | ) |
Definition at line 505 of file graphics.cpp.
| void gfx::destroy | ( | indirect_buffer_handle | _handle | ) |
Definition at line 611 of file graphics.cpp.
| void gfx::destroy | ( | occlusion_query_handle | _handle | ) |
Definition at line 841 of file graphics.cpp.
| void gfx::destroy | ( | program_handle | _handle | ) |
Definition at line 651 of file graphics.cpp.
| void gfx::destroy | ( | shader_handle | _handle | ) |
Definition at line 636 of file graphics.cpp.
| void gfx::destroy | ( | texture_handle | _handle | ) |
Definition at line 769 of file graphics.cpp.
| void gfx::destroy | ( | uniform_handle | _handle | ) |
Definition at line 826 of file graphics.cpp.
| void gfx::destroy | ( | vertex_buffer_handle | _handle | ) |
Definition at line 515 of file graphics.cpp.
| void gfx::discard | ( | uint8_t | _flags | ) |
Definition at line 1157 of file graphics.cpp.
| void gfx::dispatch | ( | view_id | _id, |
| program_handle | _handle, | ||
| indirect_buffer_handle | _indirectHandle, | ||
| uint16_t | _start, | ||
| uint16_t | _num ) |
Definition at line 1148 of file graphics.cpp.
| void gfx::dispatch | ( | view_id | _id, |
| program_handle | _handle, | ||
| uint32_t | _numX, | ||
| uint32_t | _numY, | ||
| uint32_t | _numZ ) |
Definition at line 1143 of file graphics.cpp.
| void gfx::dispatch_indirect | ( | view_id | _id, |
| program_handle | _handle, | ||
| indirect_buffer_handle | _indirectHandle, | ||
| uint16_t | _start = 0, | ||
| uint16_t | _num = 1 ) |
| void gfx::draw_billboard | ( | DebugDrawEncoder & | dd, |
| bgfx::TextureHandle | icon_texture, | ||
| const bx::Vec3 & | icon_center, | ||
| const bx::Vec3 & | camera_pos, | ||
| const bx::Vec3 & | camera_look_dir, | ||
| float | half_size ) |
Definition at line 25 of file debugdraw.cpp.
| void gfx::end | ( | encoder * | _encoder | ) |
Definition at line 427 of file graphics.cpp.
| uint64_t gfx::estimate_texture_gpu_size | ( | const texture_info & | _info, |
| uint64_t | _flags ) |
Estimate of GPU memory a texture occupies for eviction accounting. Matches bgfx's internal textureMemoryUsed baseline (texture_info::storageSize), with row-pitch uplift for uncompressed formats (256-byte alignment) and a 4 KiB minimum for committed image allocations. MSAA sample count from _flags is applied for render targets. True device occupancy comes from get_stats (gpuMemoryUsed / gpuMemoryMax); the eviction budget also carries a safety margin.
Definition at line 1652 of file graphics.cpp.
| auto gfx::fallback_texture | ( | ) | -> texture_handle |
Valid magenta 4x4 RGBA8 texture created during init and destroyed in shutdown. Returned from texture::native_handle when the resource has no live GPU handle.
Definition at line 307 of file graphics.cpp.
| uint32_t gfx::frame | ( | uint8_t | _flags | ) |
Definition at line 432 of file graphics.cpp.
| void gfx::frames | ( | int | _count, |
| int32_t | _flags ) |
Definition at line 1198 of file graphics.cpp.
| auto gfx::get_allocation_failure_policy | ( | ) | -> allocation_failure_policy |
Definition at line 302 of file graphics.cpp.
| uint32_t gfx::get_avail_instance_data_buffer | ( | uint32_t | _num, |
| uint16_t | _stride ) |
Definition at line 577 of file graphics.cpp.
| uint32_t gfx::get_avail_transient_index_buffer | ( | uint32_t | _num, |
| bool | _index32 ) |
Definition at line 567 of file graphics.cpp.
| uint32_t gfx::get_avail_transient_vertex_buffer | ( | uint32_t | _num, |
| const vertex_layout & | _decl ) |
Definition at line 572 of file graphics.cpp.
| auto gfx::get_best_depth_format | ( | std::uint16_t | type_flags, |
| std::uint32_t | search_flags ) -> texture_format |
Definition at line 198 of file format.cpp.
| auto gfx::get_best_float_format | ( | std::uint16_t | type_flags, |
| std::uint32_t | search_flags, | ||
| bool | requires_alpha, | ||
| bool | accept_padding, | ||
| bool | accept_half, | ||
| bool | accept_full ) -> texture_format |
Definition at line 6 of file format.cpp.
| auto gfx::get_best_format | ( | std::uint16_t | type_flags, |
| std::uint32_t | search_flags ) -> texture_format |
Definition at line 234 of file format.cpp.
| auto gfx::get_best_standard_format | ( | std::uint16_t | type_flags, |
| std::uint32_t | search_flags, | ||
| bool | requires_alpha, | ||
| bool | accept_padding ) -> texture_format |
Definition at line 70 of file format.cpp.
| const caps * gfx::get_caps | ( | ) |
Definition at line 445 of file graphics.cpp.
| const std::string & gfx::get_current_renderer_filename_extension | ( | ) | -> const std::string & |
Definition at line 1516 of file graphics.cpp.
| auto gfx::get_default_rt_sampler_flags | ( | ) | -> uint64_t |
Definition at line 283 of file format.cpp.
| auto gfx::get_format_info | ( | texture_format | fmt | ) | -> format_details |
Definition at line 296 of file format.cpp.
| float gfx::get_half_texel | ( | ) | -> float |
Definition at line 1568 of file graphics.cpp.
| uint32_t gfx::get_max_blend_transforms | ( | ) | -> uint32_t |
Definition at line 1563 of file graphics.cpp.
| uint32_t gfx::get_render_frame | ( | ) |
Definition at line 1590 of file graphics.cpp.
| renderer_type gfx::get_renderer_based_on_filename_extension | ( | const std::string & | _type | ) | -> renderer_type |
Definition at line 1536 of file graphics.cpp.
| const std::string & gfx::get_renderer_filename_extension | ( | renderer_type | _type | ) | -> const std::string & |
Definition at line 1493 of file graphics.cpp.
| const char * gfx::get_renderer_name | ( | renderer_type | _type | ) |
Definition at line 412 of file graphics.cpp.
| const std::set< std::string > & gfx::get_renderer_platform_supported_filename_extensions | ( | ) | -> const std::set< std::string > & |
Definition at line 1521 of file graphics.cpp.
| renderer_type gfx::get_renderer_type | ( | ) |
Definition at line 440 of file graphics.cpp.
| occlusion_query_result gfx::get_result | ( | occlusion_query_handle | _handle, |
| int32_t * | _result ) |
Definition at line 836 of file graphics.cpp.
| uint16_t gfx::get_shader_uniforms | ( | shader_handle | _handle, |
| uniform_handle * | _uniforms, | ||
| uint16_t | _max ) |
Definition at line 621 of file graphics.cpp.
| void gfx::get_size_from_ratio | ( | backbuffer_ratio | _ratio, |
| uint16_t & | _width, | ||
| uint16_t & | _height ) |
Definition at line 1457 of file graphics.cpp.
| const stats * gfx::get_stats | ( | ) |
Definition at line 450 of file graphics.cpp.
| uint8_t gfx::get_supported_renderers | ( | uint8_t | _max, |
| renderer_type * | _enum ) |
Definition at line 407 of file graphics.cpp.
| texture_handle gfx::get_texture | ( | frame_buffer_handle | _handle, |
| uint8_t | _attachment ) |
Definition at line 806 of file graphics.cpp.
| void gfx::get_uniform_info | ( | uniform_handle | _handle, |
| uniform_info & | _info ) |
Definition at line 626 of file graphics.cpp.
| bool gfx::init | ( | init_type | init_data | ) |
Definition at line 312 of file graphics.cpp.
| auto gfx::is_compressed_format | ( | texture_format | fmt | ) | -> bool |
Definition at line 394 of file format.cpp.
| auto gfx::is_format_supported | ( | std::uint16_t | flags, |
| texture_format | format ) -> bool |
| auto gfx::is_format_supported | ( | uint16_t | flags, |
| texture_format | format ) -> bool |
Definition at line 290 of file format.cpp.
| bool gfx::is_homogeneous_depth | ( | ) | -> bool |
Definition at line 1552 of file graphics.cpp.
| bool gfx::is_origin_bottom_left | ( | ) | -> bool |
Definition at line 1558 of file graphics.cpp.
| bool gfx::is_supported | ( | uint64_t | flag | ) | -> bool |
Definition at line 1574 of file graphics.cpp.
| bool gfx::is_texture_valid | ( | uint16_t | _depth, |
| bool | _cubeMap, | ||
| uint16_t | _numLayers, | ||
| texture_format | _format, | ||
| uint64_t | _flags ) |
Definition at line 656 of file graphics.cpp.
| void gfx::log | ( | const std::string & | category, |
| const std::string & | log_msg, | ||
| const char * | _filePath = nullptr, | ||
| uint16_t | _line = 0 ) |
Emit a message through the logger callback registered for category ("trace", "debug", "info", "warning", "error"). No-op when the host has not installed a callback for that category. Used by the graphics layer (e.g. the eviction system) to surface messages through the same channel bgfx uses, so the user only has to wire one logger up to the engine.
Definition at line 71 of file graphics.cpp.
| const memory_view * gfx::make_ref | ( | const void * | _data, |
| uint32_t | _size, | ||
| release_fn | _releaseFn, | ||
| void * | _userData ) |
Definition at line 465 of file graphics.cpp.
|
inline |
Definition at line 139 of file frame_buffer.h.
|
inline |
|
inline |
| auto gfx::normal_map_needs_z_reconstruction | ( | texture_format | fmt | ) | -> bool |
Definition at line 399 of file format.cpp.
Definition at line 15 of file render_view_keys.cpp.
| bool gfx::operator== | ( | const texture_key & | key1, |
| const texture_key & | key2 ) |
Definition at line 5 of file render_view_keys.cpp.
| uint32_t gfx::read_texture | ( | texture_handle | _handle, |
| void * | _data, | ||
| uint16_t | _layer, | ||
| uint8_t | _mip ) |
Definition at line 759 of file graphics.cpp.
| gfx::REFLECT | ( | texture_info | ) |
Definition at line 9 of file texture.cpp.
| gfx::REFLECT_EXTERN | ( | texture_info | ) |
| void gfx::request_screen_shot | ( | frame_buffer_handle | _handle, |
| const char * | _filePath ) |
Definition at line 1193 of file graphics.cpp.
| void gfx::reset | ( | uint32_t | _width, |
| uint32_t | _height, | ||
| uint32_t | _flags ) |
Definition at line 417 of file graphics.cpp.
| void gfx::reset_view | ( | view_id | _id | ) |
Definition at line 927 of file graphics.cpp.
| uint64_t gfx::screen_quad | ( | float | dest_width, |
| float | dest_height, | ||
| float | depth, | ||
| float | width, | ||
| float | height ) -> uint64_t |
Definition at line 1210 of file graphics.cpp.
| void gfx::set_allocation_failure_policy | ( | allocation_failure_policy | policy | ) |
Definition at line 297 of file graphics.cpp.
| void gfx::set_buffer | ( | uint8_t | _stage, |
| dynamic_index_buffer_handle | _handle, | ||
| access | _access ) |
Definition at line 1128 of file graphics.cpp.
| void gfx::set_buffer | ( | uint8_t | _stage, |
| dynamic_vertex_buffer_handle | _handle, | ||
| access | _access ) |
Definition at line 1133 of file graphics.cpp.
| void gfx::set_buffer | ( | uint8_t | _stage, |
| index_buffer_handle | _handle, | ||
| access | _access ) |
Definition at line 1118 of file graphics.cpp.
| void gfx::set_buffer | ( | uint8_t | _stage, |
| indirect_buffer_handle | _handle, | ||
| access | _access ) |
Definition at line 1138 of file graphics.cpp.
| void gfx::set_buffer | ( | uint8_t | _stage, |
| vertex_buffer_handle | _handle, | ||
| access | _access ) |
Definition at line 1123 of file graphics.cpp.
| void gfx::set_condition | ( | occlusion_query_handle | _handle, |
| bool | _visible ) |
Definition at line 942 of file graphics.cpp.
| void gfx::set_debug | ( | uint32_t | _debug | ) |
Definition at line 470 of file graphics.cpp.
| void gfx::set_debug_logger | ( | const std::function< void(const std::string &, const char *, uint16_t)> & | logger | ) |
Definition at line 53 of file graphics.cpp.
| void gfx::set_debug_logger | ( | const std::function< void(const std::string &, const char *_filePath, uint16_t _line)> & | logger | ) |
| void gfx::set_error_logger | ( | const std::function< void(const std::string &, const char *, uint16_t)> & | logger | ) |
Definition at line 66 of file graphics.cpp.
| void gfx::set_error_logger | ( | const std::function< void(const std::string &, const char *_filePath, uint16_t _line)> & | logger | ) |
| void gfx::set_frame_uniform | ( | uniform_handle | _handle, |
| const void * | _value, | ||
| uint16_t | _num ) |
Definition at line 987 of file graphics.cpp.
| void gfx::set_image | ( | uint8_t | _stage, |
| texture_handle | _handle, | ||
| uint8_t | _mip, | ||
| access | _access, | ||
| texture_format | _format ) |
Definition at line 1113 of file graphics.cpp.
| void gfx::set_index_buffer | ( | const transient_index_buffer * | _tib | ) |
Definition at line 1012 of file graphics.cpp.
| void gfx::set_index_buffer | ( | const transient_index_buffer * | _tib, |
| uint32_t | _firstIndex, | ||
| uint32_t | _numIndices ) |
Definition at line 1017 of file graphics.cpp.
| void gfx::set_index_buffer | ( | dynamic_index_buffer_handle | _handle | ) |
Definition at line 1002 of file graphics.cpp.
| void gfx::set_index_buffer | ( | dynamic_index_buffer_handle | _handle, |
| uint32_t | _firstIndex, | ||
| uint32_t | _numIndices ) |
Definition at line 1007 of file graphics.cpp.
| void gfx::set_index_buffer | ( | index_buffer_handle | _handle | ) |
Definition at line 992 of file graphics.cpp.
| void gfx::set_index_buffer | ( | index_buffer_handle | _handle, |
| uint32_t | _firstIndex, | ||
| uint32_t | _numIndices ) |
Definition at line 997 of file graphics.cpp.
| void gfx::set_info_logger | ( | const std::function< void(const std::string &, const char *, uint16_t)> & | logger | ) |
Definition at line 58 of file graphics.cpp.
| void gfx::set_info_logger | ( | const std::function< void(const std::string &, const char *_filePath, uint16_t _line)> & | logger | ) |
| void gfx::set_instance_data_buffer | ( | const instance_data_buffer * | _idb, |
| uint32_t | _start, | ||
| uint32_t | _num ) |
Definition at line 1063 of file graphics.cpp.
| void gfx::set_instance_data_buffer | ( | dynamic_vertex_buffer_handle | _handle, |
| uint32_t | _startVertex, | ||
| uint32_t | _num ) |
Definition at line 1073 of file graphics.cpp.
| void gfx::set_instance_data_buffer | ( | vertex_buffer_handle | _handle, |
| uint32_t | _startVertex, | ||
| uint32_t | _num ) |
Definition at line 1068 of file graphics.cpp.
| void gfx::set_marker | ( | const char * | _marker | ) |
Definition at line 932 of file graphics.cpp.
| void gfx::set_name | ( | frame_buffer_handle | _handle, |
| const char * | _name, | ||
| int32_t | _len ) |
Definition at line 811 of file graphics.cpp.
| void gfx::set_name | ( | index_buffer_handle | _handle, |
| const char * | _name, | ||
| int32_t | _len ) |
Definition at line 500 of file graphics.cpp.
| void gfx::set_name | ( | shader_handle | _handle, |
| const char * | _name, | ||
| int32_t | _len ) |
Definition at line 631 of file graphics.cpp.
| void gfx::set_name | ( | texture_handle | _handle, |
| const char * | _name, | ||
| int32_t | _len ) |
Definition at line 764 of file graphics.cpp.
| void gfx::set_name | ( | vertex_buffer_handle | _handle, |
| const char * | _name, | ||
| int32_t | _len ) |
Definition at line 520 of file graphics.cpp.
| void gfx::set_palette_color | ( | uint8_t | _index, |
| const float | _rgba[4] ) |
| void gfx::set_palette_color | ( | uint8_t | _index, |
| const float | _rgba[] ) |
Definition at line 851 of file graphics.cpp.
| void gfx::set_palette_color | ( | uint8_t | _index, |
| float | _r, | ||
| float | _g, | ||
| float | _b, | ||
| float | _a ) |
Definition at line 856 of file graphics.cpp.
| void gfx::set_palette_color | ( | uint8_t | _index, |
| uint32_t | _rgba ) |
Definition at line 846 of file graphics.cpp.
| void gfx::set_platform_data | ( | const platform_data & | _data | ) |
Definition at line 274 of file graphics.cpp.
| void gfx::set_profiler_hooks | ( | gfx_profiler_begin_hook | on_begin, |
| gfx_profiler_begin_literal_hook | on_begin_literal, | ||
| gfx_profiler_end_hook | on_end ) |
Definition at line 256 of file graphics.cpp.
| void gfx::set_scissor | ( | uint16_t | _cache | ) |
Definition at line 957 of file graphics.cpp.
| uint16_t gfx::set_scissor | ( | uint16_t | _x, |
| uint16_t | _y, | ||
| uint16_t | _width, | ||
| uint16_t | _height ) |
Definition at line 952 of file graphics.cpp.
| void gfx::set_state | ( | uint64_t | _state, |
| uint32_t | _rgba ) |
Definition at line 937 of file graphics.cpp.
| void gfx::set_stencil | ( | uint32_t | _fstencil, |
| uint32_t | _bstencil ) |
Definition at line 947 of file graphics.cpp.
| void gfx::set_texture | ( | const gfx::program::uniform_ptr & | uniform, |
| std::uint8_t | stage, | ||
| const asset_handle< gfx::texture > & | texture, | ||
| std::uint32_t | flags = std::numeric_limits< std::uint32_t >::max() ) |
Sets the texture for a specific stage using a texture.
| uniform | The uniform pointer. |
| _stage | The stage number. |
| _texture | The texture handle. |
| _flags | The texture flags. |
Definition at line 290 of file gpu_program.cpp.
| void gfx::set_texture | ( | const gfx::program::uniform_ptr & | uniform, |
| std::uint8_t | stage, | ||
| const gfx::frame_buffer * | handle, | ||
| uint8_t | attachment = 0, | ||
| std::uint32_t | flags = std::numeric_limits< std::uint32_t >::max() ) |
Sets the texture for a specific stage using a frame buffer.
| uniform | The uniform pointer. |
| _stage | The stage number. |
| _handle | The frame buffer handle. |
| _attachment | The attachment point. |
| _flags | The texture flags. |
Definition at line 263 of file gpu_program.cpp.
| void gfx::set_texture | ( | const gfx::program::uniform_ptr & | uniform, |
| std::uint8_t | stage, | ||
| const gfx::frame_buffer::ptr & | handle, | ||
| uint8_t | attachment = 0, | ||
| std::uint32_t | flags = std::numeric_limits< std::uint32_t >::max() ) |
Sets the texture for a specific stage using a frame buffer.
| uniform | The uniform pointer. |
| _stage | The stage number. |
| _handle | The frame buffer handle. |
| _attachment | The attachment point. |
| _flags | The texture flags. |
Definition at line 246 of file gpu_program.cpp.
| void gfx::set_texture | ( | const gfx::program::uniform_ptr & | uniform, |
| std::uint8_t | stage, | ||
| const gfx::texture * | texture, | ||
| std::uint32_t | flags = std::numeric_limits< std::uint32_t >::max() ) |
Sets the texture for a specific stage using a texture.
| uniform | The uniform pointer. |
| _stage | The stage number. |
| _texture | The texture handle. |
| _flags | The texture flags. |
Definition at line 277 of file gpu_program.cpp.
| void gfx::set_texture | ( | const gfx::program::uniform_ptr & | uniform, |
| std::uint8_t | stage, | ||
| const gfx::texture::ptr & | texture, | ||
| std::uint32_t | flags = std::numeric_limits< std::uint32_t >::max() ) |
Sets the texture for a specific stage using a texture.
| uniform | The uniform pointer. |
| _stage | The stage number. |
| _texture | The texture handle. |
| _flags | The texture flags. |
Definition at line 255 of file gpu_program.cpp.
| void gfx::set_texture | ( | uint8_t | _stage, |
| uniform_handle | _sampler, | ||
| texture_handle | _handle, | ||
| uint32_t | _flags ) |
Definition at line 1078 of file graphics.cpp.
| void gfx::set_trace_logger | ( | const std::function< void(const std::string &, const char *, uint16_t)> & | logger | ) |
Definition at line 48 of file graphics.cpp.
| void gfx::set_trace_logger | ( | const std::function< void(const std::string &, const char *_filePath, uint16_t _line)> & | logger | ) |
| void gfx::set_transform | ( | const math::transform & | matrix | ) |
Definition at line 241 of file gpu_program.cpp.
| void gfx::set_transform | ( | const math::transform::mat4_t & | matrix | ) |
Definition at line 235 of file gpu_program.cpp.
| void gfx::set_transform | ( | const std::vector< math::transform > & | matrices | ) |
Definition at line 217 of file gpu_program.cpp.
| void gfx::set_transform | ( | const std::vector< math::transform::mat4_t > & | matrices | ) |
Definition at line 207 of file gpu_program.cpp.
| uint32_t gfx::set_transform | ( | const void * | _mtx, |
| uint16_t | _num ) |
Definition at line 962 of file graphics.cpp.
| void gfx::set_transform | ( | uint32_t | _cache, |
| uint16_t | _num ) |
Definition at line 972 of file graphics.cpp.
| void gfx::set_uniform | ( | const gfx::program::uniform_ptr & | uniform, |
| const math::mat4 & | value, | ||
| std::uint16_t | num = 1 ) |
Sets a uniform value.
| uniform | The uniform pointer. |
| _value | The mat4 value to set. |
| _num | The number of elements (default is 1). |
Definition at line 307 of file gpu_program.cpp.
| void gfx::set_uniform | ( | const gfx::program::uniform_ptr & | uniform, |
| const math::vec2 & | value, | ||
| std::uint16_t | num = 1 ) |
Sets a uniform value.
| uniform | The uniform pointer. |
| _value | The vec2 value to set. |
| _num | The number of elements (default is 1). |
Definition at line 319 of file gpu_program.cpp.
| void gfx::set_uniform | ( | const gfx::program::uniform_ptr & | uniform, |
| const math::vec3 & | value, | ||
| std::uint16_t | num = 1 ) |
Sets a uniform value.
| uniform | The uniform pointer. |
| _value | The vec3 value to set. |
| _num | The number of elements (default is 1). |
Definition at line 315 of file gpu_program.cpp.
| void gfx::set_uniform | ( | const gfx::program::uniform_ptr & | uniform, |
| const math::vec4 & | value, | ||
| std::uint16_t | num = 1 ) |
Sets a uniform value.
| uniform | The uniform pointer. |
| _value | The vec4 value to set. |
| _num | The number of elements (default is 1). |
Definition at line 311 of file gpu_program.cpp.
| void gfx::set_uniform | ( | const gfx::program::uniform_ptr & | uniform, |
| const void * | value, | ||
| std::uint16_t | num = 1 ) |
Sets a uniform value.
| uniform | The uniform pointer. |
| _value | The value to set. |
| _num | The number of elements (default is 1). |
Definition at line 298 of file gpu_program.cpp.
| void gfx::set_uniform | ( | uniform_handle | _handle, |
| const void * | _value, | ||
| uint16_t | _num ) |
Definition at line 977 of file graphics.cpp.
| void gfx::set_vertex_buffer | ( | uint8_t | _stream, |
| const transient_vertex_buffer * | _tvb ) |
Definition at line 1045 of file graphics.cpp.
| void gfx::set_vertex_buffer | ( | uint8_t | _stream, |
| const transient_vertex_buffer * | _tvb, | ||
| uint32_t | _startVertex, | ||
| uint32_t | _numVertices ) |
Definition at line 1050 of file graphics.cpp.
| void gfx::set_vertex_buffer | ( | uint8_t | _stream, |
| dynamic_vertex_buffer_handle | _handle ) |
Definition at line 1032 of file graphics.cpp.
| void gfx::set_vertex_buffer | ( | uint8_t | _stream, |
| dynamic_vertex_buffer_handle | _handle, | ||
| uint32_t | _startVertex, | ||
| uint32_t | _numVertices ) |
Definition at line 1037 of file graphics.cpp.
| void gfx::set_vertex_buffer | ( | uint8_t | _stream, |
| vertex_buffer_handle | _handle ) |
Definition at line 1022 of file graphics.cpp.
| void gfx::set_vertex_buffer | ( | uint8_t | _stream, |
| vertex_buffer_handle | _handle, | ||
| uint32_t | _startVertex, | ||
| uint32_t | _numVertices ) |
Definition at line 1027 of file graphics.cpp.
| void gfx::set_vertex_count | ( | uint32_t | _numVertices | ) |
Definition at line 1058 of file graphics.cpp.
| void gfx::set_view_clear | ( | view_id | _id, |
| uint16_t | _flags, | ||
| float | _depth, | ||
| uint8_t | _stencil, | ||
| uint8_t | _0, | ||
| uint8_t | _1, | ||
| uint8_t | _2, | ||
| uint8_t | _3, | ||
| uint8_t | _4, | ||
| uint8_t | _5, | ||
| uint8_t | _6, | ||
| uint8_t | _7 ) |
Definition at line 886 of file graphics.cpp.
| void gfx::set_view_clear | ( | view_id | _id, |
| uint16_t | _flags, | ||
| uint32_t | _rgba, | ||
| float | _depth, | ||
| uint8_t | _stencil ) |
Definition at line 881 of file graphics.cpp.
| void gfx::set_view_frame_buffer | ( | view_id | _id, |
| frame_buffer_handle | _handle ) |
Definition at line 907 of file graphics.cpp.
Definition at line 902 of file graphics.cpp.
| void gfx::set_view_name | ( | view_id | _id, |
| const char * | _name ) |
Definition at line 861 of file graphics.cpp.
Definition at line 917 of file graphics.cpp.
| void gfx::set_view_rect | ( | view_id | _id, |
| uint16_t | _x, | ||
| uint16_t | _y, | ||
| backbuffer_ratio | _ratio ) |
Definition at line 871 of file graphics.cpp.
| void gfx::set_view_rect | ( | view_id | _id, |
| uint16_t | _x, | ||
| uint16_t | _y, | ||
| uint16_t | _width, | ||
| uint16_t | _height ) |
Definition at line 866 of file graphics.cpp.
| void gfx::set_view_scissor | ( | view_id | _id, |
| uint16_t | _x, | ||
| uint16_t | _y, | ||
| uint16_t | _width, | ||
| uint16_t | _height ) |
Definition at line 876 of file graphics.cpp.
| void gfx::set_view_shading_rate | ( | view_id | _id, |
| shading_rate | _shadingRate ) |
Definition at line 922 of file graphics.cpp.
| void gfx::set_view_transform | ( | view_id | _id, |
| const void * | _view, | ||
| const void * | _proj ) |
Definition at line 912 of file graphics.cpp.
| void gfx::set_view_uniform | ( | view_id | _id, |
| uniform_handle | _handle, | ||
| const void * | _value, | ||
| uint16_t | _num ) |
Definition at line 982 of file graphics.cpp.
| void gfx::set_warning_logger | ( | const std::function< void(const std::string &, const char *, uint16_t)> & | logger | ) |
Definition at line 62 of file graphics.cpp.
| void gfx::set_warning_logger | ( | const std::function< void(const std::string &, const char *_filePath, uint16_t _line)> & | logger | ) |
| void gfx::set_world_transform | ( | const math::transform & | matrix | ) |
Sets the transformation.
| matrix | The transformation. |
Definition at line 202 of file gpu_program.cpp.
| void gfx::set_world_transform | ( | const math::transform::mat4_t & | matrix | ) |
Sets the transformation matrix.
| matrix | The transformation matrix. |
Definition at line 196 of file gpu_program.cpp.
| void gfx::set_world_transform | ( | const std::vector< math::transform > & | matrices | ) |
Sets the transformations.
| matrices | The vector of transformations. |
Definition at line 178 of file gpu_program.cpp.
| void gfx::set_world_transform | ( | const std::vector< math::transform::mat4_t > & | matrices | ) |
Sets the transformation matrices.
| matrices | The vector of transformation matrices. |
Definition at line 168 of file gpu_program.cpp.
| void gfx::set_world_transform | ( | const void * | _mtx, |
| uint16_t | _num ) |
Definition at line 1595 of file graphics.cpp.
| void gfx::shutdown | ( | ) |
Definition at line 279 of file graphics.cpp.
| void gfx::submit | ( | view_id | _id, |
| program_handle | _handle, | ||
| indirect_buffer_handle | _indirectHandle, | ||
| uint16_t | _start, | ||
| uint16_t | _num, | ||
| int32_t | _depth, | ||
| bool | _preserveState ) |
Definition at line 1102 of file graphics.cpp.
| void gfx::submit | ( | view_id | _id, |
| program_handle | _handle, | ||
| int32_t | _depth, | ||
| bool | _preserveState ) |
Definition at line 1088 of file graphics.cpp.
| void gfx::submit | ( | view_id | _id, |
| program_handle | _program, | ||
| occlusion_query_handle | _occlusionQuery, | ||
| int32_t | _depth, | ||
| bool | _preserveState ) |
Definition at line 1093 of file graphics.cpp.
| auto gfx::to_string | ( | texture_format | fmt | ) | -> std::string |
Definition at line 404 of file format.cpp.
| uint32_t gfx::topology_convert | ( | topology_conversion | _conversion, |
| void * | _dst, | ||
| uint32_t | _dstSize, | ||
| const void * | _indices, | ||
| uint32_t | _numIndices, | ||
| bool | _index32 ) |
Definition at line 378 of file graphics.cpp.
| void gfx::topology_sort_tri_list | ( | topology_sort | _sort, |
| void * | _dst, | ||
| uint32_t | _dstSize, | ||
| const float | _dir[3], | ||
| const float | _pos[3], | ||
| const void * | _vertices, | ||
| uint32_t | _stride, | ||
| const void * | _indices, | ||
| uint32_t | _numIndices, | ||
| bool | _index32 ) |
| void gfx::topology_sort_tri_list | ( | topology_sort | _sort, |
| void * | _dst, | ||
| uint32_t | _dstSize, | ||
| const float | _dir[], | ||
| const float | _pos[], | ||
| const void * | _vertices, | ||
| uint32_t | _stride, | ||
| const void * | _indices, | ||
| uint32_t | _numIndices, | ||
| bool | _index32 ) |
Definition at line 388 of file graphics.cpp.
| void gfx::touch | ( | view_id | _id | ) |
Definition at line 1083 of file graphics.cpp.
| void gfx::update | ( | dynamic_index_buffer_handle | _handle, |
| uint32_t | _startIndex, | ||
| const memory_view * | _mem ) |
Definition at line 535 of file graphics.cpp.
| void gfx::update | ( | dynamic_vertex_buffer_handle | _handle, |
| uint32_t | _startVertex, | ||
| const memory_view * | _mem ) |
Definition at line 557 of file graphics.cpp.
| void gfx::update_texture_2d | ( | texture_handle | _handle, |
| uint16_t | _layer, | ||
| uint8_t | _mip, | ||
| uint16_t | _x, | ||
| uint16_t | _y, | ||
| uint16_t | _width, | ||
| uint16_t | _height, | ||
| const memory_view * | _mem, | ||
| uint16_t | _pitch ) |
Definition at line 719 of file graphics.cpp.
| void gfx::update_texture_3d | ( | texture_handle | _handle, |
| uint8_t | _mip, | ||
| uint16_t | _x, | ||
| uint16_t | _y, | ||
| uint16_t | _z, | ||
| uint16_t | _width, | ||
| uint16_t | _height, | ||
| uint16_t | _depth, | ||
| const memory_view * | _mem ) |
Definition at line 732 of file graphics.cpp.
| void gfx::update_texture_cube | ( | texture_handle | _handle, |
| uint16_t | _layer, | ||
| uint8_t | _side, | ||
| uint8_t | _mip, | ||
| uint16_t | _x, | ||
| uint16_t | _y, | ||
| uint16_t | _width, | ||
| uint16_t | _height, | ||
| const memory_view * | _mem, | ||
| uint16_t | _pitch ) |
Definition at line 745 of file graphics.cpp.
| void gfx::vertex_convert | ( | const vertex_layout & | _destDecl, |
| void * | _destData, | ||
| const vertex_layout & | _srcDecl, | ||
| const void * | _srcData, | ||
| uint32_t | _num ) |
Definition at line 369 of file graphics.cpp.
| void gfx::vertex_pack | ( | const float | _input[4], |
| bool | _inputNormalized, | ||
| attribute | _attr, | ||
| const vertex_layout & | _decl, | ||
| void * | _data, | ||
| uint32_t | _index ) |
Definition at line 354 of file graphics.cpp.
| void gfx::vertex_unpack | ( | float | _output[4], |
| attribute | _attr, | ||
| const vertex_layout & | _decl, | ||
| const void * | _data, | ||
| uint32_t | _index ) |
Definition at line 364 of file graphics.cpp.
|
static |
Definition at line 446 of file cube_atlas.cpp.
|
static |
Definition at line 18 of file graphics.h.
|
static |
Definition at line 44 of file text_buffer_manager.cpp.