19 #ifndef GNASH_RENDER_HANDLER_GLES1_H 20 #define GNASH_RENDER_HANDLER_GLES1_H 29 #ifdef HAVE_GLES1_GL_H 32 #ifdef HAVE_GLES1_EGL_H 69 typedef std::map<const Path*, std::vector<oglVertex> >
PathPointMap;
77 refs.push_back(&new_path);
78 shape.push_back(refs);
83 PathRefs& refs = shape.back();
84 refs.push_back(&add_path);
89 PathRefs new_refs(pathrefs.begin(), pathrefs.end());
90 shape.push_back(new_refs);
93 const std::vector<PathRefs>&
get()
const 98 std::vector<PathRefs> shape;
113 bool ogl_accessible);
119 inline bool ogl_accessible()
const;
123 mutable std::unique_ptr<GnashImage> _img;
124 GLenum _pixel_format;
125 GLenum _ogl_img_type;
126 mutable bool _ogl_accessible;
127 mutable GLuint _texture_id;
141 void init(
float x,
float y);
142 CachedBitmap *createCachedBitmap(std::unique_ptr<image::GnashImage> im);
144 void world_to_pixel(
int& x,
int& y,
float world_x,
float world_y)
const;
149 void begin_display(
const gnash::rgba&,
int,
int,
float,
150 float,
float,
float);
157 void drawLine(
const std::vector<point>& coords,
const rgba&
fill,
161 void draw_poly(
const std::vector<point>& corners,
162 const rgba& fill,
const rgba& outline,
168 void set_antialiased(
bool enable);
169 void begin_submit_mask();
170 void end_submit_mask();
174 void set_scale(
float xscale,
float yscale);
179 void endInternalRender();
181 unsigned int getBitsPerPixel();
182 bool initTestBuffer(
unsigned width,
unsigned height);
185 void printVGParams();
186 void printVGHardware();
189 unsigned char *_testBuffer;
198 #endif // __RENDER_HANDLER_GLES1_H__ GLfloat _x
Definition: Renderer_gles1.h:64
Definition: Renderer_gles1.h:53
Definition: Renderer_gles1.h:101
VGPaint fill
Definition: testr_gtk.cpp:86
GLfloat _y
Definition: Renderer_gles1.h:65
Definition: SWFMatrix.h:53
void newPath(const Path &new_path)
Definition: Renderer_gles1.h:74
void addPathRefs(const PathRefs &pathrefs)
Definition: Renderer_gles1.h:87
GLfloat _z
Definition: Renderer_gles1.h:66
Definition: Renderer_gles1.h:132
bitmap_wrap_mode
Set line and fill styles for mesh & line_strip rendering.
Definition: Renderer_gles1.h:106
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
dtype_t
The list of supported device types.
Definition: GnashDevice.h:48
Definition: klash_part.cpp:329
2D Point class
Definition: Point2d.h:38
Definition: GnashKey.h:149
Base class for render handlers.
Definition: Renderer.h:188
Definition: Renderer_gles1.h:108
Definition: klash_part.cpp:329
void addPath(const Path &add_path)
Definition: Renderer_gles1.h:81
std::string description() const
Return a description of this renderer.
Definition: Renderer_gles1.h:135
std::map< const Path *, std::vector< oglVertex > > PathPointMap
Definition: Renderer_gles1.h:69
Renderer * create_handler(const char *)
Definition: Renderer_gles1.cpp:315
A subset of a shape, a series of edges sharing a single set of styles.
Definition: Geometry.h:166
std::int32_t x
Definition: BitmapData_as.cpp:434
#define DSOEXPORT
Definition: dsodefs.h:55
Definition: Renderer_gles1.h:71
Definition: eglDevice.h:56
std::vector< const Path * > PathRefs
Definition: Renderer_gles1.h:51
std::int32_t y
Definition: BitmapData_as.cpp:435
Base class for different types of bitmaps.
Definition: GnashImage.h:77
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:44
Definition: GnashKey.h:162
Definition: GnashKey.h:172
A CachedBitmap is created by the renderer in a format of its choosing.
Definition: CachedBitmap.h:37
Holds information needed to draw a shape.
Definition: ShapeRecord.h:126
oglVertex(GLfloat x, GLfloat y, GLfloat z=0.0)
Definition: Renderer_gles1.h:54
oglVertex(const point &p)
Definition: Renderer_gles1.h:59
A basic RGBA type.
Definition: RGBA.h:35