yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
scad_format.h File Reference
#include <SDL.h>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "app/core/constants.h"
Include dependency graph for scad_format.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yaze::app::gfx::scad_format::CgxHeader
 Cgx file header キャラクタ(.SCH)ファイル ヘッダー情報 アドレス 説明 00000 - 00003 ファイルタイプ "SCH" 00004 - 00008 ビットモード "?BIT" 00009 - 00013 バージョンナンバー "Ver-????\n" 00014 - 00017 ヘッダーサイズ 00018 - 0001B ハード名 "SFC" or "CGB" or "GB" 0001C - 0001C BG/OBJフラグ(AGBの時) 0001D - 0001D Color Pallette Number 0001D - 000FF 予約 00100 - 001FF Color Path. More...
 

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::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::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::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.
 

Variables

constexpr uint16_t yaze::app::gfx::scad_format::kMatchedBytes [] = {0x4E, 0x41, 0x4B, 0x31, 0x39, 0x38, 0x39}
 
constexpr uint16_t yaze::app::gfx::scad_format::kOffsetFromMatchedBytesEnd = 0x1D