LayoutFarm / HtmlRenderer

C# HTML Layout and HTML Rendering Engine
http://layoutfarm.github.io/HtmlRenderer/
Other
185 stars 40 forks source link

HtmlRenderer on OpenGLES #55

Open prepare opened 7 years ago

prepare commented 7 years ago

(pure hardware rendering1) Render directly on the OpenGLES surface (without GDI+) coordinate errors/ temp fix, snapshot.

html_gles2

prepare commented 7 years ago

(pure hardware rendering2) mix HtmlRenderer ( coordinate system left-top) and AggCanvas (coordinate system left-bottom)

lion is render with pure hardward (OpenGLES + Antialias Shader)


html_gles2

prepare commented 7 years ago

GLES2 based-HtmlRenderer, early preview, NOT CORRECT


gles2_html3

pic 1: render with OpenGLES2, Text is rendering with PixelFarm's MiniAgg+ the Typography.

prepare commented 7 years ago

html_gdi pic 2: render with GDI+ (System.Drawing)

prepare commented 5 years ago

Nov 2018

htmlbox_gles

see more about glyph texture at https://github.com/PaintLab/PixelFarm/issues/3

prepare commented 5 years ago

Feb 2019, Progression

This is a snap shot of the HtmlRenderer that runs on GLFW+GLES2+OpenTK, no WinForms and no GDI+.

neutral1 pic 1: 'neutral' branch

This example is different from the GLES2 example on the readme page. The old one in readme page still need some WinForm supports, but the new one dose not.

Plan=>

  1. clean up (The code still in a 'mess' state, let me clean it up)
  2. create .netcore examples (Win, macOS, Linux).

It should not be a long time :)

In short, essential dll dependencies are

In short, essential dll dependencies are

1. OpenTK ( cross-platform => Yes)
2. GLES2 ( cross-platform => Yes)
3. GLFW3.2.1 ( cross-platform => Yes)
4. PixelFarm+Typography ( cross-platform => Yes)