Logo Search packages:      
Sourcecode: blender version File versions  Download package

GPC_Canvas Class Reference

#include <GPC_Canvas.h>

Inheritance diagram for GPC_Canvas:

GPG_Canvas GPU_Canvas GPW_Canvas

List of all members.


Detailed Description

Id
GPC_Canvas.h 14444 2008-04-16 22:40:48Z hos

***** BEGIN GPL LICENSE BLOCK *****

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.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL LICENSE BLOCK *****

Definition at line 52 of file GPC_Canvas.h.


Public Types

enum  BufferType { COLOR_BUFFER = 1, DEPTH_BUFFER = 2 }
enum  RAS_MouseState { MOUSE_INVISIBLE = 1, MOUSE_WAIT, MOUSE_NORMAL }
enum  TBannerAlignment { alignTopLeft, alignBottomRight }
typedef int TBannerId

Public Member Functions

TBannerId AddBanner (unsigned int bannerWidth, unsigned int bannerHeight, unsigned int imageWidth, unsigned int imageHeight, unsigned char *imageData, TBannerAlignment alignment=alignTopLeft, bool enabled=true)
virtual bool BeginDraw ()=0
void BeginFrame ()
void ClearBuffer (int type)
void ClearColor (float r, float g, float b, float a)
void DisposeAllBanners ()
void DisposeBanner (TBannerId id)
virtual void EndDraw ()=0
void EndFrame ()
RAS_RectGetDisplayArea ()
const RAS_RectGetDisplayArea () const
int GetHeight () const
int GetWidth () const
 GPC_Canvas (int width, int height)
virtual void Init ()=0
virtual void MakeScreenShot (const char *filename)
void Resize (int width, int height)
void SetBannerDisplayEnabled (bool enabled=true)
void SetBannerEnabled (TBannerId id, bool enabled=true)
void SetMousePosition (int x, int y)
void SetMouseState (RAS_MouseState mousestate)
void SetViewPort (int x1, int y1, int x2, int y2)
virtual void SwapBuffers ()=0
 probably needs some arguments for PS2 in future

Protected Types

typedef std::map< TBannerId,
TBannerData
TBannerMap

Protected Member Functions

void DisposeBanner (TBannerData &banner)
void DrawAllBanners (void)
void DrawBanner (TBannerData &banner)
void PopRenderState (const CanvasRenderState &render_state)
void PushRenderState (CanvasRenderState &render_state)
void SetOrthoProjection ()

Protected Attributes

TBannerMap m_banners
bool m_bannersEnabled
RAS_Rect m_displayarea
int m_height
int m_width

Static Protected Attributes

static TBannerId s_bannerId = 0

Classes

struct  CanvasRenderState
struct  TBannerData

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index