RingRacers/src/sdl/rhi_gl2_platform.hpp
Eidolon 187f30cc64 rhi: use GL 2 instead of GL Core
Widens the hardware compat range without losing features (besides
debugging)
2023-11-04 20:15:51 -05:00

35 lines
985 B
C++

// SONIC ROBO BLAST 2
//-----------------------------------------------------------------------------
// Copyright (C) 2023 by Ronald "Eidolon" Kinard
//
// This program is free software distributed under the
// terms of the GNU General Public License, version 2.
// See the 'LICENSE' file for more details.
//-----------------------------------------------------------------------------
#ifndef __SRB2_SDL_RHI_GL2_PLATFORM_HPP__
#define __SRB2_SDL_RHI_GL2_PLATFORM_HPP__
#include "../rhi/gl2/gl2_rhi.hpp"
#include "../rhi/rhi.hpp"
#include <SDL.h>
namespace srb2::rhi
{
struct SdlGl2Platform final : public Gl2Platform
{
SDL_Window* window = nullptr;
virtual ~SdlGl2Platform();
virtual void present() override;
virtual std::tuple<std::vector<std::string>, std::vector<std::string>>
find_shader_sources(PipelineProgram program) override;
virtual Rect get_default_framebuffer_dimensions() override;
};
} // namespace srb2::rhi
#endif // __SRB2_SDL_RHI_GL2_PLATFORM_HPP__