remove app namespace
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
}
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
using core::SDL_Surface_Deleter;
|
||||
@@ -483,5 +482,5 @@ void Bitmap::WriteColor(int position, const ImVec4 &color) {
|
||||
}
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
@@ -12,10 +12,9 @@
|
||||
#include "app/gfx/snes_palette.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
|
||||
/**
|
||||
* @namespace yaze::app::gfx
|
||||
* @namespace yaze::gfx
|
||||
* @brief Contains classes for handling graphical data.
|
||||
*/
|
||||
namespace gfx {
|
||||
@@ -214,7 +213,7 @@ class Bitmap {
|
||||
using BitmapTable = std::unordered_map<int, gfx::Bitmap>;
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_GFX_BITMAP_H
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#define DEBUG_LOG(msg) std::cout << msg << std::endl
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
namespace lc_lz2 {
|
||||
@@ -1473,5 +1472,5 @@ absl::StatusOr<std::vector<uint8_t>> DecompressOverworld(
|
||||
|
||||
} // namespace lc_lz2
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
@@ -11,11 +11,10 @@
|
||||
#define BUILD_HEADER(command, length) (command << 5) + (length - 1)
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
/**
|
||||
* @namespace yaze::app::gfx::lc_lz2
|
||||
* @namespace yaze::gfx::lc_lz2
|
||||
* @brief Contains the LC_LZ2 compression algorithm.
|
||||
*/
|
||||
namespace lc_lz2 {
|
||||
@@ -245,7 +244,7 @@ absl::StatusOr<std::vector<uint8_t>> DecompressOverworld(const std::vector<uint8
|
||||
} // namespace lc_lz2
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_GFX_COMPRESSION_H
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "app/gfx/snes_tile.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
namespace scad_format {
|
||||
|
||||
@@ -279,5 +278,5 @@ absl::Status DecodeObjFile(
|
||||
|
||||
} // namespace scad_format
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
@@ -19,11 +19,10 @@
|
||||
#include "app/core/constants.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
/**
|
||||
* @namespace yaze::app::gfx::scad_format
|
||||
* @namespace yaze::gfx::scad_format
|
||||
* @brief Loading from prototype SCAD format
|
||||
*/
|
||||
namespace scad_format {
|
||||
@@ -100,7 +99,7 @@ absl::Status DecodeObjFile(
|
||||
|
||||
} // namespace scad_format
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_GFX_scad_format_H
|
||||
@@ -7,7 +7,6 @@
|
||||
#include "imgui/imgui.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
constexpr uint16_t SNES_RED_MASK = 32;
|
||||
@@ -100,5 +99,5 @@ std::vector<SnesColor> GetColFileData(uint8_t* data) {
|
||||
}
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "imgui/imgui.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
constexpr int NumberOfColors = 3143;
|
||||
@@ -108,7 +107,7 @@ SnesColor GetCgxColor(uint16_t color);
|
||||
std::vector<SnesColor> GetColFileData(uint8_t* data);
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_GFX_SNES_COLOR_H_
|
||||
|
||||
@@ -17,11 +17,10 @@
|
||||
#include "imgui/imgui.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
/**
|
||||
* @namespace yaze::app::gfx::palette_group_internal
|
||||
* @namespace yaze::gfx::palette_group_internal
|
||||
* @brief Internal functions for loading palettes by group.
|
||||
*/
|
||||
namespace palette_group_internal {
|
||||
@@ -352,5 +351,5 @@ absl::Status LoadAllPalettes(const std::vector<uint8_t> &rom_data,
|
||||
|
||||
} // namespace gfx
|
||||
std::unordered_map<uint8_t, gfx::Paletteset> GfxContext::palettesets_;
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#include "snes_color.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
constexpr int kNumPalettes = 14;
|
||||
@@ -384,7 +383,7 @@ struct Paletteset {
|
||||
gfx::SnesPalette aux1, gfx::SnesPalette aux2,
|
||||
gfx::SnesColor background, gfx::SnesPalette hud,
|
||||
gfx::SnesPalette spr, gfx::SnesPalette spr2, gfx::SnesPalette comp)
|
||||
: main(main),
|
||||
: main_(main),
|
||||
animated(animated),
|
||||
aux1(aux1),
|
||||
aux2(aux2),
|
||||
@@ -394,7 +393,7 @@ struct Paletteset {
|
||||
spr2(spr2),
|
||||
composite(comp) {}
|
||||
|
||||
gfx::SnesPalette main; /**< The main palette. */
|
||||
gfx::SnesPalette main_; /**< The main palette. */
|
||||
gfx::SnesPalette animated; /**< The animated palette. */
|
||||
gfx::SnesPalette aux1; /**< The first auxiliary palette. */
|
||||
gfx::SnesPalette aux2; /**< The second auxiliary palette. */
|
||||
@@ -416,7 +415,7 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_GFX_PALETTE_H
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include "app/core/constants.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
// Bit set for object priority
|
||||
@@ -23,8 +22,8 @@ constexpr ushort TileVFlipBit = 0x8000;
|
||||
// Bits used for tile name
|
||||
constexpr ushort TileNameMask = 0x03FF;
|
||||
|
||||
snes_tile8 UnpackBppTile(const std::vector<uint8_t>& data, const uint32_t offset,
|
||||
const uint32_t bpp) {
|
||||
snes_tile8 UnpackBppTile(const std::vector<uint8_t>& data,
|
||||
const uint32_t offset, const uint32_t bpp) {
|
||||
snes_tile8 tile;
|
||||
assert(bpp >= 1 && bpp <= 8);
|
||||
unsigned int bpp_pos[8]; // More for conveniance and readibility
|
||||
@@ -400,5 +399,5 @@ void CopyTile8bpp16(int x, int y, int tile, std::vector<uint8_t>& bitmap,
|
||||
}
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include <vector>
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
constexpr int kTilesheetWidth = 128;
|
||||
@@ -222,7 +221,7 @@ class GraphicsBuffer {
|
||||
};
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_GFX_SNES_TILE_H
|
||||
|
||||
@@ -4,12 +4,9 @@
|
||||
#include <vector>
|
||||
|
||||
#include "app/gfx/bitmap.h"
|
||||
#include "app/gfx/snes_color.h"
|
||||
#include "app/gfx/snes_palette.h"
|
||||
#include "app/gfx/snes_tile.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
absl::StatusOr<Tilesheet> CreateTilesheetFromGraphicsBuffer(
|
||||
@@ -210,5 +207,5 @@ void Tilesheet::MirrorTileData(std::vector<uint8_t>& tile_data, bool mirrorX,
|
||||
}
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
@@ -5,12 +5,10 @@
|
||||
#include <vector>
|
||||
|
||||
#include "app/gfx/bitmap.h"
|
||||
#include "app/gfx/snes_color.h"
|
||||
#include "app/gfx/snes_palette.h"
|
||||
#include "app/gfx/snes_tile.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace app {
|
||||
namespace gfx {
|
||||
|
||||
enum class TileType { Tile8, Tile16 };
|
||||
@@ -134,7 +132,7 @@ absl::StatusOr<Tilesheet> CreateTilesheetFromGraphicsBuffer(
|
||||
int sheet_id);
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace app
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_GFX_TILESHEET_H
|
||||
#endif // YAZE_APP_GFX_TILESHEET_H
|
||||
|
||||
Reference in New Issue
Block a user