Giter Site home page Giter Site logo

lwjgfont-example's People

Contributors

momokan avatar

Watchers

 avatar  avatar

lwjgfont-example's Issues

Slick2D で文字列表示を行うと上下が逆転してしまう

ver1.1 までで再現。
LWJGFont では文字列表示の際に、
文字列の下端の Y 座標 < 文字列の上端の Y 座標
としてテクスチャマッピングされる。

これは glOrtho(left, right, bottom, top, nearVal, farVal) の呼び出しにおいて、
Y 座標値の大きさが bottom < top となることを想定しているためだが、
Slick2D では top < bottom として glOrtho() が呼び出されるため、マッピングするテクスチャーの上下が Y 座標軸方向上逆転してしまう。

回避策として、LWJGFont 利用時のみ glRotatef() による Y 座標の反転をすることで回避できるが、
より根本的に、glOrtho() の指定によらず Y 座標の方向を LWJGFont に指定できるよう改修する必要がある。

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.