X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Frice_gles%2Fsrc%2FExtendedRender.h;fp=source%2Frice_gles%2Fsrc%2FExtendedRender.h;h=180e84c01b19cdcf872e682c1be0d8e8ee6d37e0;hb=d07c171fa694cae985ad7045f9ce2b2f1a5699b4;hp=0000000000000000000000000000000000000000;hpb=ca22e7b76883b946060a6b40bb8709c1981e1cf6;p=mupen64plus-pandora.git diff --git a/source/rice_gles/src/ExtendedRender.h b/source/rice_gles/src/ExtendedRender.h new file mode 100644 index 0000000..180e84c --- /dev/null +++ b/source/rice_gles/src/ExtendedRender.h @@ -0,0 +1,59 @@ +/* +Copyright (C) 2003 Rice1964 + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ + +#ifndef _EXTENDED_RENDER_H_ +#define _EXTENDED_RENDER_H_ + +#include "RSP_Parser.h" +#include "RSP_S2DEX.h" + +// Define the render extension interface and provide empty implementation of +// the render extension functions. +// Real render can either implement or not implement these extended render functions + +// These extended render functions are in different groups: +// - Group #1: Related to frame buffer +// - Group #2: Related to 2D sprite +// - Group #3: Related BG and ScaledBG +class CExtendedRender +{ +public: + virtual ~CExtendedRender() {} + + virtual void DrawFrameBuffer(bool useVIreg=false, uint32 left=0, uint32 top=0, uint32 width=0, uint32 height=0) {}; + virtual void LoadFrameBuffer(bool useVIreg=false, uint32 left=0, uint32 top=0, uint32 width=0, uint32 height=0) {}; + virtual void LoadTxtrBufFromRDRAM(void) {}; + virtual void LoadTxtrBufIntoTexture(void) {}; + + virtual void DrawSprite2D(Sprite2DInfo &info, uint32 ucode) {}; + virtual void LoadSprite2D(Sprite2DInfo &info, uint32 ucode) {}; + + + virtual void DrawSprite(uObjTxSprite &sprite, bool rectR = true) {}; + virtual void DrawObjBG1CYC(uObjScaleBg &bg, bool scaled=true) {}; + virtual void DrawObjBGCopy(uObjBg &info) {}; + virtual void LoadObjBGCopy(uObjBg &info) {}; + virtual void LoadObjBG1CYC(uObjScaleBg &info) {}; + virtual void LoadObjSprite(uObjTxSprite &info, bool useTIAddr=false) {}; + + virtual void DrawText(const char* str, RECT *rect) {}; +}; + + +#endif +