Git Product home page Git Product logo

amanithvg-sdk's Introduction

amanithvg-sdk

AmanithVG SDK - http://www.amanithvg.com

AmanithVG is a commercial implementation of OpenVG 1.1 and 1.0.1, the application programming interface (API) for hardware accelerated 2D vector and raster graphics, created by the Khronos group. Born as a “OpenVG on OpenGL / OpenGL ES” engine, AmanithVG evolved into two different OpenVG graphic libraries.

AmanithVG GLE is entirely built on top of OpenGL 1.1+ and OpenGL ES 1.x CM, and it uses extensions where available. This engine can grant high quality vector graphics on a wide range of 3D chipset, achieving better performance than software rasterizers in terms of high resolution animations and complex special effects (transparencies, fading, realtime rotoscaling and many others).

AmanithVG SRE is a pure software solution that grants a superlative vector graphics quality without to sacrifice performance on any kind of architecture / platform. Thanks to its original polygon rasterization algorithm and dedicated optimized scanline fillers, this engine constitues the fastest OpenVG software rendering solution available on the market.

amanithvg-sdk's People

Contributors

mfabbri77 avatar muratmat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amanithvg-sdk's Issues

vgDrawGlyphs possibly not using adjustments properly

When a string of text is drawn with vgDrawGlyphs, it seems to be reading the adjustment values from the wrong locations in the provided array. For character 0, it is not using any adjustment value, only using the position set to VG_GLYPH_ORIGIN. For character 1, it uses the adjustment value in adjustments[0].

To demonstrate, if I had the following code:

VGuint indices[strlen];
VGfloat x_adjustments[strlen];
VGfloat y_adjustments[strlen];

for (int i = 0; i < strlen; i++) {

    /* Find computed values */

    indices[i] = computed_index;
    x_adjustments[i] = computed_x_adjustment;
    y_adjustments[i] = computed_y_adjustment;
}

vgSetfv (VG_GLYPH_ORIGIN, 2, overall_origin);
vgDrawGlyphs (font,
              strlen,
              indices,
              x_adjustments,
              y_adjustments,
              VG_FILL_PATH,
              VG_FALSE);

I would have to change it to this for it to use the adjustment value on character 0 and the correct adjustments on the following characters:

VGuint indices[strlen];
VGfloat x_adjustments[strlen];
VGfloat y_adjustments[strlen];

for (int i = 0; i < strlen; i++) {

    /* Find computed values */

    indices[i] = computed_index;
    x_adjustments[i] = computed_x_adjustment;
    y_adjustments[i] = computed_y_adjustment;
}

VGfloat[2] new_overall_origin = {overall_origin[0] + x_adjustments[0], overall_origin[1] + y_adjustments[0]};
vgSetfv (VG_GLYPH_ORIGIN, 2, new_overall_origin);
vgDrawGlyphs (font,
              strlen,
              indices,
              &x_adjustments[1],
              &y_adjustments[1],
              VG_FILL_PATH,
              VG_FALSE);

However, the specification does seem somewhat ambiguous about this, as it says:

The user space position of the first glyph (the point where the glyph origin will be placed) is determined by the value of VG_GLYPH_ORIGIN.

Contrary to one possible interpretation of that, it seems that many applications written against OpenVG use vgDrawGlyphs adjustments as if the 0th value will be used.

Thank you for taking the time to read this. If I could provide any more information, please let me know.

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.