Skip to content

Commit

Permalink
Refactoring WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rtoumazet committed Oct 15, 2024
1 parent 9be32cf commit 196ed91
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
24 changes: 20 additions & 4 deletions saturnin/src/video/opengl/opengl.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,6 @@ class Opengl {
// Shuts down this object and frees any resources it is using
void shutdown() const;

// Pre/post rendering functions
void preRender();
void postRender() const;

// Displays the framebuffer content (VDP1 + VDP2)
void displayFramebuffer(core::EmulatorContext& state);
void displayFramebufferByScreenPriority(core::EmulatorContext& state);
Expand Down Expand Up @@ -492,6 +488,26 @@ class Opengl {
std::string fps_; // Calculated frames per second.
};

// class OpenglRender {
// public:
// OpenglRender() = default;
// ~OpenglRender() = default;
//
// OpenglRender(const OpenglRender&) = delete;
//
// OpenglRender(OpenglRender&&) = delete;
//
// OpenglRender& operator=(const OpenglRender&) = delete;
//
// OpenglRender& operator=(OpenglRender&&) = delete;
//
// // Pre/post rendering functions
// void preRender();
// void postRender() const;
//
// private:
// };

// Queries if the current video card is capable of rendering modern opengl (ie version 3.3+).
auto isModernOpenglCapable() -> bool;

Expand Down
2 changes: 1 addition & 1 deletion saturnin/src/video/vdp_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace saturnin::video {
constexpr auto vram_start_address = u32{0x25e00000};
constexpr auto cram_start_address = u32{0x25f00000};
constexpr auto vdp1_address_multiplier = u8{8};
constexpr auto uses_fbo = true;
constexpr auto uses_fbo = false;

constexpr auto gouraud_offset = s8{0x10};

Expand Down

0 comments on commit 196ed91

Please sign in to comment.