Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
FrameBuffer.hpp
1/*
2Copyright (C) 2019,2021,2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#ifndef AEONGAMES_FRAMEBUFFER_H
17#define AEONGAMES_FRAMEBUFFER_H
18#include <cstdint>
19#include <string>
21#ifdef _MSC_VER
22#pragma warning( push )
23#pragma warning( disable : PROTOBUF_WARNINGS )
24#endif
25#include "framebuffer.pb.h"
26#ifdef _MSC_VER
27#pragma warning( pop )
28#endif
29#include "aeongames/Resource.hpp"
30namespace AeonGames
31{
32 class FrameBufferMsg;
34 class FrameBuffer : public Resource
35 {
36 public:
37 DLL virtual ~FrameBuffer() = 0;
42 virtual void LoadFromPBMsg ( const FrameBufferMsg& aFrameBufferMsg ) = 0;
44 virtual void Unload() = 0;
50 virtual void Resize ( uint32_t aWidth, uint32_t aHeight ) = 0;
52 virtual void Bind() = 0;
54 virtual void Unbind() = 0;
55 };
56}
57#endif
Platform-specific macros, includes, and DLL export/import definitions.
Abstract interface for off-screen render target (frame buffer) resources.
virtual void Unload()=0
Release all resources held by this frame buffer.
virtual void Unbind()=0
Unbind this frame buffer, restoring the previous render target.
virtual void LoadFromPBMsg(const FrameBufferMsg &aFrameBufferMsg)=0
Initialize the frame buffer from a protobuf message.
virtual void Bind()=0
Bind this frame buffer as the current render target.
virtual void Resize(uint32_t aWidth, uint32_t aHeight)=0
Resize the frame buffer to new dimensions.
Base class for loadable engine resources.
Definition Resource.hpp:33
<- This is here just for the literals
Definition AABB.hpp:31