So jMonkeyEngine is good for Video Games, normal java applications, databases connections, and any Java related software but my graphics driver is too old, so i thought why dont i create a new Video Driver with jMonkeyEngine? Hey i started the project today ok
Here it is what i have done.-
Created a jMonekeyEngine java game project jme3 basic game
package xvideo;
import com.jme3.app.SimpleApplication;
import com.jme3.system.AppSettings;
import java.awt.DisplayMode;
import java.awt.GraphicsEnvironment;
public class ChameleonX extends SimpleApplication {
public void toggleToFullscreen(AppSettings appS) {
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
DisplayMode[] modes = device.getDisplayModes();
int i=0;
settings.setResizable(false);
settings.setRenderer(AppSettings.LWJGL_OPENGL3);
settings.setResolution(modes[i].getWidth(),modes[i].getHeight());
settings.setFrequency(modes[i].getRefreshRate());
settings.setBitsPerPixel(modes[i].getBitDepth());
settings.setFullscreen(device.isFullScreenSupported());
ChameleonX app = new ChameleonX();
app.setSettings(settings);
app.restart();
}
public static void main(String[] args)
{
String[] capacidad_video = {"resolucion","pantallacompleta","versionOpenGL", "versionDirectX"};
String[] AppSettings = {"LWJGL_OPENGL2","LWJGL_OPENGL3","LWJGL_OPENAL","ANDROID_OPENAL_SOFT","JOGL_OPENGL_FORWARD_COMPATIBLE","JOGL_OPENGL_BACKWARD_COMPATIBLE"};
for(String x : AppSettings)
{
if(x.startsWith("LWJGL_OPENGL" + "2"))
{
}
else if(x.startsWith("LWJGL_OPENGL" + "3")
{
}
else if(x.startsWith("LWJGL_OPENGL" + "3"))
{
}
}
ChameleonX app = new ChameleonX();
app.start(); // start the game
}
@Override
public void simpleInitApp()
{
throw new UnsupportedOperationException("Not supported yet.");
}
}
Well i know its Very basic, but do you have any ideas? i will work on it on these days.