Path: blob/master/libmeteor/include/ameteor/graphics/renderer.hpp
2 views
// Meteor - A Nintendo Gameboy Advance emulator1// Copyright (C) 2009-2011 Philippe Daouadi2//3// This program is free software: you can redistribute it and/or modify4// it under the terms of the GNU General Public License as published by5// the Free Software Foundation, either version 3 of the License, or6// (at your option) any later version.7//8// This program is distributed in the hope that it will be useful,9// but WITHOUT ANY WARRANTY; without even the implied warranty of10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11// GNU General Public License for more details.12//13// You should have received a copy of the GNU General Public License14// along with this program. If not, see <http://www.gnu.org/licenses/>.1516#ifndef __GRAPHICS_RENDERER_H__17#define __GRAPHICS_RENDERER_H__1819#include <stdint.h>2021#include <syg/signal.hpp>2223namespace AMeteor24{25namespace Graphics26{27class Renderer28{29public:30typedef syg::slot1<void, const uint16_t*> FrameSlot;3132Renderer(const uint16_t* surface);3334inline void SetFrameSlot(const FrameSlot& slot);3536void VBlank();3738private :39const uint16_t* m_base;4041FrameSlot m_sig_frame;42};4344void Renderer::SetFrameSlot(const FrameSlot& slot)45{46m_sig_frame = slot;47}48}49}5051#endif525354