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);
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::auto_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::auto_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,
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__