Giter VIP home page Giter VIP logo

irragg's Introduction

IrrAgg

A collection of utilities for using Anti-Grain Geometry (AGG) with Irrlicht. The primary utility is a Painter class into which instances of objects inheriting IShape can be given for drawing.

Complete Example

irr::IImage*
paintTriangle( irr::IVideoDriver* driver, vector2df a, vector2df b, vector2df c)
{
	irr::vecg::Triangle  triangle( toPoint_t(a), toPoint_t(b), toPoint_t(c) );
	irr::vecg::Painter  painter(driver, irr::core::dimension2du(90,30);
	painter.setColor( irr::video::SColor(0xffff0000) ); // Red
	painter.drawNormal(triangle);
	irr::video::IImage*  image = painter.getCanvas();
	image->grab();
	return image;
}

More information about using AGG with Irrlicht can be found in this blog article.

Current Features

  • Rendering arbitrary vector graphic paths onto a 32-bit ARGB IImage.
  • Premade classes for rendering paths.
  • Functions for conversion of Irrlicht matrix to/from AGG matrix.
  • Functions for conversion between Irrlicht and AGG color types.

Planned Features

  • Font loading and rendering, especially TTF and UTF-8-complete fonts.
  • Other shapes (rounded rectangles)

Build

This is currently a very small group of files and is intended to be dropped in with the rest of your project code.

Tested using AGG-2.5 and Irrlicht-1.9 (development, svn revision 5589). Note: Due to the consistency of Irrlicht (and thanks to its API-sensitive team), these utilities should work with most versions of Irrlicht.

irragg's People

Contributors

chronologicaldot avatar

Watchers

 avatar  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.