Giter Site home page Giter Site logo

xvgml's Introduction

XVGML engine

eXtensible Vector Graphics Markup Language

This is a very old project I did about the time when XAML started to see the light. The idea turned out to be very similar - you define elements in XML and they are then being rendered into an image. Although this project was mostly focusing on rendering images (compared to XAML, focusing on interactive UI), I decided to ditch it anyway, as XAML could be used (and has) vector graphic resources as well. This is fully working project, although number of implemented graphical elements is very limited. Today even Google has primitive vector drawables in their Android framework.

Code composition works through packages, which can register one or more graphical elements (with XML namespace and name) in the container. Then LayoutBuilder can instantiate all elements based on the registrations and LayoutRenderer can render them on the ICanvas. Cool feature is that there could be multiple canvas implementations. Default one is using standard GDI, while one can implement hardware-accelerated DirectDraw canvas, if necessary.

This was a fun project to get hands-on experience creating 2D image format, rendering engine and understanding all potential complications.

Test project is a console app that has few sample XML image definitions and can render them in PNG format.

Happy coding!

xvgml's People

Contributors

junk-machine avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.