Advertisement
francogp

with lwjgl 2.x

Aug 28th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1.         LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
  2.  
  3.         //AMD fix
  4.         config.useGL30 = true;
  5.         ShaderProgram.prependVertexCode = "#version 140\n#define varying out\n#define attribute in\n";
  6.         ShaderProgram.prependFragmentCode = "#version 140\n#define varying in\n#define texture2D texture\n#define gl_FragColor fragColor\nout vec4 fragColor;\n";
  7.         //AMD fix
  8.  
  9.         config.vSyncEnabled = false;
  10.         config.fullscreen = true;
  11.         config.width = 1280;
  12.         config.height = 768;
  13.         new LwjglApplication(new LightningBoltTest(), config);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement