#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"
Go to the source code of this file.
|
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...
|
|
|
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.
|
|