Giter Club home page Giter Club logo

sevencommons's Introduction

#SevenCommons - Modding Framework#

SevenCommons is a Framework for easier creation of Mods based on the Minecraft Forge Modding API for Minecraft. It is currently in pre-alpha and not yet open to use.

This library is licensed under the LGPL v3.

sevencommons's People

Contributors

diesieben07 avatar parker8283 avatar

Stargazers

Hypocisy avatar  avatar Mainyf avatar  avatar Bogdan avatar coval avatar  avatar McHorse avatar Haxy avatar joazlazer avatar Paulo "JCranky" Siqueira avatar Ilia Tetin avatar  avatar Jerzerak avatar

Watchers

Paulo "JCranky" Siqueira avatar James Cloos avatar Lucas Levvy avatar  avatar Resin avatar CAB avatar Ilia Tetin avatar Gabriel Macias avatar joazlazer avatar 90 avatar Intektor avatar Bogdan avatar  avatar

sevencommons's Issues

Better way to glScissor

Hey there! I was writing scrolling pane for myself and stuck onto your code while searching for minecraft forge and glScissor.

So instead of figuring out the scale of the screen, you can determine first the ratios:

int rx = this.mc.displayWidth / this.width;
int ry = this.mc.displayHeight / this.height;

And then multiply your rect's x, y, width and height by those ratios:

int w = 200;
int h = 200;
int x = width/2 - w;
int y = 80;

GL11.glScissor(x * rx, this.mc.displayHeight - (y + h) * ry, w * rx, h * ry);

That is another simpler (and better) way to glScissor in minecraft's GUI.

P.S.: Maybe you're already figured out (since this topic is over two years old), but I'm gonna do it anyway, since the code hasn't changed.

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.