LWJGL
May 19, 2013, 12:22:11 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [CLOSED] DisplayMode Constructor  (Read 932 times)
l3eta
Newbie
*
Posts: 5


« on: May 13, 2012, 17:23:29 »

EDIT: I forgot what I was actually trying to do, Just remembered so I fixed the code and title

Mainly because I like to work with Dimensions instead of doing w, h when I define something.
Code:
public DisplayMode(Dimension size) {
    this(size.width, size.height);
}

Pretty simple, Just a little thought Smiley
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1111



« Reply #1 on: May 29, 2012, 02:59:33 »

Don't think adding an OO api to LWJGL's static API is consistent. LWJGL provides just the most basic API, boilerplate API sugar should go in the framework that sits on top of LWJGL.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!