#include "common.h"
#include <tinystl/allocator.h>
#include <tinystl/string.h>
#include <tinystl/vector.h>
#include "entry/entry.h"
#include <bgfx/bgfx.h>
#include <bx/commandline.h>
#include <bx/endian.h>
#include <bx/math.h>
#include <bx/readerwriter.h>
#include <bx/string.h>
#include "bgfx_utils.h"
#include <bimg/decode.h>
#include <bx/bx.h>
#include <bx/file.h>
#include <bx/sort.h>
#include <time.h>
Go to the source code of this file.
|
void * | load (bx::FileReaderI *_reader, bx::AllocatorI *_allocator, const char *_filePath, uint32_t *_size) |
|
void * | load (const char *_filePath, uint32_t *_size) |
|
void | unload (void *_ptr) |
|
bgfx::ShaderHandle | loadShader (const char *_name) |
|
bgfx::ProgramHandle | loadProgram (bx::FileReaderI *_reader, const char *_vsName, const char *_fsName) |
|
bgfx::ProgramHandle | loadProgram (const char *_vsName, const char *_fsName) |
|
bgfx::TextureHandle | loadTexture (bx::FileReaderI *_reader, const char *_filePath, uint64_t _flags, uint8_t _skip, bgfx::TextureInfo *_info, bimg::Orientation::Enum *_orientation) |
|
bgfx::TextureHandle | loadTexture (const char *_name, uint64_t _flags, uint8_t _skip, bgfx::TextureInfo *_info, bimg::Orientation::Enum *_orientation) |
|
bimg::ImageContainer * | imageLoad (const void *data, uint32_t size, bgfx::TextureFormat::Enum _dstFormat) |
|
bimg::ImageContainer * | imageLoad (const char *_filePath, bgfx::TextureFormat::Enum _dstFormat) |
|
void | calcTangents (void *_vertices, uint16_t _numVertices, bgfx::VertexLayout _layout, const uint16_t *_indices, uint32_t _numIndices) |
|
bool | saveToFile (bgfx::ViewId viewId, const char *_filePath, bgfx::FrameBufferHandle fbo, uint32_t width, uint32_t height) |
|
bool | imageSave (const char *saveAs, bimg::ImageContainer *image) |
|
◆ calcTangents()
void calcTangents |
( |
void * | _vertices, |
|
|
uint16_t | _numVertices, |
|
|
bgfx::VertexLayout | _layout, |
|
|
const uint16_t * | _indices, |
|
|
uint32_t | _numIndices ) |
◆ imageLoad() [1/2]
bimg::ImageContainer * imageLoad |
( |
const char * | _filePath, |
|
|
bgfx::TextureFormat::Enum | _dstFormat ) |
◆ imageLoad() [2/2]
bimg::ImageContainer * imageLoad |
( |
const void * | data, |
|
|
uint32_t | size, |
|
|
bgfx::TextureFormat::Enum | _dstFormat ) |
◆ imageSave()
bool imageSave |
( |
const char * | saveAs, |
|
|
bimg::ImageContainer * | image ) |
◆ load() [1/2]
void * load |
( |
bx::FileReaderI * | _reader, |
|
|
bx::AllocatorI * | _allocator, |
|
|
const char * | _filePath, |
|
|
uint32_t * | _size ) |
◆ load() [2/2]
void * load |
( |
const char * | _filePath, |
|
|
uint32_t * | _size ) |
◆ loadProgram() [1/2]
bgfx::ProgramHandle loadProgram |
( |
bx::FileReaderI * | _reader, |
|
|
const char * | _vsName, |
|
|
const char * | _fsName ) |
◆ loadProgram() [2/2]
bgfx::ProgramHandle loadProgram |
( |
const char * | _vsName, |
|
|
const char * | _fsName ) |
◆ loadShader()
bgfx::ShaderHandle loadShader |
( |
const char * | _name | ) |
|
◆ loadTexture() [1/2]
bgfx::TextureHandle loadTexture |
( |
bx::FileReaderI * | _reader, |
|
|
const char * | _filePath, |
|
|
uint64_t | _flags, |
|
|
uint8_t | _skip, |
|
|
bgfx::TextureInfo * | _info, |
|
|
bimg::Orientation::Enum * | _orientation ) |
◆ loadTexture() [2/2]
bgfx::TextureHandle loadTexture |
( |
const char * | _name, |
|
|
uint64_t | _flags, |
|
|
uint8_t | _skip, |
|
|
bgfx::TextureInfo * | _info, |
|
|
bimg::Orientation::Enum * | _orientation ) |
◆ saveToFile()
bool saveToFile |
( |
bgfx::ViewId | viewId, |
|
|
const char * | _filePath, |
|
|
bgfx::FrameBufferHandle | fbo, |
|
|
uint32_t | width, |
|
|
uint32_t | height ) |
◆ unload()
void unload |
( |
void * | _ptr | ) |
|