[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/gui aqua.cpp aquasup.h
From: |
Markus Gothe |
Subject: |
[Gnash-commit] gnash/gui aqua.cpp aquasup.h |
Date: |
Tue, 08 May 2007 21:28:18 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Markus Gothe <nihilus> 07/05/08 21:28:18
Modified files:
gui : aqua.cpp aquasup.h
Log message:
Initial stubs for constructors/destructor.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/aqua.cpp?cvsroot=gnash&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/aquasup.h?cvsroot=gnash&r1=1.2&r2=1.3
Patches:
Index: aqua.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/aqua.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- aqua.cpp 6 May 2007 23:39:42 -0000 1.5
+++ aqua.cpp 8 May 2007 21:28:18 -0000 1.6
@@ -17,7 +17,7 @@
//
//
-/* $Id: aqua.cpp,v 1.5 2007/05/06 23:39:42 nihilus Exp $ */
+/* $Id: aqua.cpp,v 1.6 2007/05/08 21:28:18 nihilus Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -35,7 +35,20 @@
namespace gnash {
+AquaGui::AquaGui()
+: Gui()
+{
+}
+
+AquaGui::AquaGui(unsigned long xid, float scale, bool loop, unsigned int depth)
+ : Gui(xid, scale, loop, depth)
+{
+}
+AquaGui::~AquaGui()
+{
+
+}
}
\ No newline at end of file
Index: aquasup.h
===================================================================
RCS file: /sources/gnash/gnash/gui/aquasup.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- aquasup.h 6 May 2007 23:39:42 -0000 1.2
+++ aquasup.h 8 May 2007 21:28:18 -0000 1.3
@@ -17,7 +17,7 @@
//
//
-/* $Id: aquasup.h,v 1.2 2007/05/06 23:39:42 nihilus Exp $ */
+/* $Id: aquasup.h,v 1.3 2007/05/08 21:28:18 nihilus Exp $ */
#ifndef __AQUASUP_H__
#define __AQUASUP_H__
@@ -34,6 +34,36 @@
class AquaGui : public Gui
{
+ private:
+
+ std::vector< geometry::Range2d<int> > _drawbounds;
+
+ int m_stage_width;
+ int m_stage_height;
+
+ /// For 8 bit (palette / LUT) modes, sets a grayscale palette.
+ //
+ /// This GUI currently does not support palette modes.
+ ///
+ bool set_grayscale_lut8();
+
+ bool initialize_renderer();
+
+ int valid_x(int x);
+ int valid_y(int y);
+
+ public:
+ AquaGui();
+ AquaGui(unsigned long xid, float scale, bool loop, unsigned int
depth);
+ virtual ~AquaGui();
+ virtual bool init(int argc, char ***argv);
+ virtual bool createWindow(const char* title, int width, int height);
+ virtual bool run();
+ virtual bool createMenu();
+ virtual bool setupEvents();
+ virtual void renderBuffer();
+ virtual void setInterval(unsigned int interval);
+ virtual void setTimeout(unsigned int timeout);
};