yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
bitmap.cc File Reference
#include "bitmap.h"
#include <SDL.h>
#include <cstdint>
#include <future>
#include <memory>
#include "app/core/platform/memory_tracker.h"
#include "app/core/platform/sdl_deleter.h"
#include "app/gfx/snes_palette.h"
#include "app/gfx/texture_pool.h"

Go to the source code of this file.

Classes

struct  yaze::gfx::SDL_Surface_Deleter
 

Namespaces

namespace  yaze
 Main namespace for the application.
 
namespace  yaze::gfx
 Contains classes for handling graphical data.
 

Functions

Uint32 yaze::gfx::GetSnesPixelFormat (int format)
 Get the SDL pixel format for a given bitmap format.
 
SDL_Surface * yaze::gfx::AllocateSurface (int width, int height, int depth, Uint32 format)
 Allocate an SDL surface with the given dimensions and format.
 
SDL_Texture * yaze::gfx::AllocateTexture (SDL_Renderer *renderer, Uint32 format, int access, int width, int height)
 Allocate an SDL texture with the given dimensions and format.
 
std::vector< gfx::Bitmapyaze::gfx::ExtractTile8Bitmaps (const gfx::Bitmap &source_bmp, const gfx::SnesPalette &palette, uint8_t palette_index)
 Extract 8x8 tiles from a source bitmap.