yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
scad_format.cc File Reference
#include "scad_format.h"
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <memory>
#include <vector>
#include "absl/status/status.h"
#include "app/core/constants.h"
#include "app/gfx/snes_tile.h"
Include dependency graph for scad_format.cc:

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::app
 Main namespace for the ImGui application.
 
namespace  yaze::app::gfx
 Contains classes for handling graphical data.
 
namespace  yaze::app::gfx::scad_format
 Loading from prototype SCAD format.
 

Functions

void yaze::app::gfx::scad_format::FindMetastamp ()
 Find metastamp in CGX file.
 
absl::Status yaze::app::gfx::scad_format::LoadCgx (uint8_t bpp, std::string_view filename, std::vector< uint8_t > &cgx_data, std::vector< uint8_t > &cgx_loaded, std::vector< uint8_t > &cgx_header)
 Load Cgx file (graphical content)
 
absl::Status yaze::app::gfx::scad_format::LoadScr (std::string_view filename, uint8_t input_value, std::vector< uint8_t > &map_data)
 Load Scr file (screen data)
 
absl::Status yaze::app::gfx::scad_format::DrawScrWithCgx (uint8_t bpp, std::vector< uint8_t > &map_bitmap_data, std::vector< uint8_t > &map_data, std::vector< uint8_t > &cgx_loaded)
 Draw screen tilemap with graphical data.
 
std::vector< SDL_Color > yaze::app::gfx::scad_format::DecodeColFile (const std::string_view filename)
 Decode color file.
 
absl::Status yaze::app::gfx::scad_format::DecodeObjFile (std::string_view filename, std::vector< uint8_t > &obj_data, std::vector< uint8_t > actual_obj_data, std::unordered_map< std::string, std::vector< uint8_t > > decoded_obj, std::vector< uint8_t > &decoded_extra_obj, int &obj_loaded)
 Decode obj file.