yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::service::RenderService Class Reference

#include <render_service.h>

Collaboration diagram for yaze::app::service::RenderService:

Public Member Functions

 RenderService (Rom *rom, zelda3::GameData *game_data)
 
absl::StatusOr< RenderResultRenderDungeonRoom (const RenderRequest &req)
 
absl::StatusOr< RoomMetadataGetDungeonRoomMetadata (int room_id)
 

Private Member Functions

absl::StatusOr< std::vector< uint8_t > > BitmapToRgba (const gfx::Bitmap &bitmap, int width, int height)
 
void ApplyOverlays (std::vector< uint8_t > &rgba, int width, int height, const zelda3::Room &room, uint32_t flags, float scale)
 
absl::StatusOr< std::vector< uint8_t > > EncodePng (const std::vector< uint8_t > &rgba, int width, int height)
 

Private Attributes

Romrom_
 
zelda3::GameDatagame_data_
 
std::mutex mu_
 

Detailed Description

Definition at line 64 of file render_service.h.

Constructor & Destructor Documentation

◆ RenderService()

yaze::app::service::RenderService::RenderService ( Rom * rom,
zelda3::GameData * game_data )

Definition at line 67 of file render_service.cc.

Member Function Documentation

◆ RenderDungeonRoom()

◆ GetDungeonRoomMetadata()

◆ BitmapToRgba()

absl::StatusOr< std::vector< uint8_t > > yaze::app::service::RenderService::BitmapToRgba ( const gfx::Bitmap & bitmap,
int width,
int height )
private

◆ ApplyOverlays()

◆ EncodePng()

absl::StatusOr< std::vector< uint8_t > > yaze::app::service::RenderService::EncodePng ( const std::vector< uint8_t > & rgba,
int width,
int height )
private

Definition at line 333 of file render_service.cc.

Referenced by RenderDungeonRoom().

Member Data Documentation

◆ rom_

Rom* yaze::app::service::RenderService::rom_
private

Definition at line 87 of file render_service.h.

Referenced by GetDungeonRoomMetadata(), and RenderDungeonRoom().

◆ game_data_

zelda3::GameData* yaze::app::service::RenderService::game_data_
private

Definition at line 88 of file render_service.h.

Referenced by GetDungeonRoomMetadata(), and RenderDungeonRoom().

◆ mu_

std::mutex yaze::app::service::RenderService::mu_
mutableprivate

Definition at line 89 of file render_service.h.

Referenced by GetDungeonRoomMetadata(), and RenderDungeonRoom().


The documentation for this class was generated from the following files: