本文整理了Java中com.jme3.system.AppSettings.setWidth()
方法的一些代码示例,展示了AppSettings.setWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppSettings.setWidth()
方法的具体详情如下:
包路径:com.jme3.system.AppSettings
类名称:AppSettings
方法名:setWidth
暂无
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
/**
* Set the resolution for the rendering display
* @param width The width
* @param height The height
* (Default: 640x480)
*/
public void setResolution(int width, int height) {
setWidth(width);
setHeight(height);
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
source.setWidth(width);
source.setHeight(height);
source.setBitsPerPixel(depth);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
public static void main(String[] args) throws InterruptedException{
AppSettings settings = new AppSettings(true);
settings.setWidth(640);
settings.setHeight(480);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
public static void createCanvas(String appClass){
AppSettings settings = new AppSettings(true);
settings.setWidth(640);
settings.setHeight(480);
// settings.setRenderer(AppSettings.JOGL);
JmeSystem.setLowPermissions(true);
try{
Class<? extends LegacyApplication> clazz = (Class<? extends LegacyApplication>) Class.forName(appClass);
app = clazz.newInstance();
}catch (ClassNotFoundException ex){
ex.printStackTrace();
}catch (InstantiationException ex){
ex.printStackTrace();
}catch (IllegalAccessException ex){
ex.printStackTrace();
}
app.setSettings(settings);
app.createCanvas();
context = (JmeCanvasContext) app.getContext();
canvas = context.getCanvas();
canvas.setSize(settings.getWidth(), settings.getHeight());
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
public static void createCanvas(String appClass){
AppSettings settings = new AppSettings(true);
settings.setWidth(640);
settings.setHeight(480);
try{
Class<? extends LegacyApplication> clazz = (Class<? extends LegacyApplication>) Class.forName(appClass);
app = clazz.newInstance();
}catch (ClassNotFoundException ex){
ex.printStackTrace();
}catch (InstantiationException ex){
ex.printStackTrace();
}catch (IllegalAccessException ex){
ex.printStackTrace();
}
app.setPauseOnLostFocus(false);
app.setSettings(settings);
app.createCanvas();
app.startCanvas();
context = (JmeCanvasContext) app.getContext();
canvas = context.getCanvas();
canvas.setSize(settings.getWidth(), settings.getHeight());
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.setWidth(getWidth());
settings.setHeight(getHeight());
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.setWidth(getWidth());
settings.setHeight(getHeight());
settings.setAudioRenderer(null);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
public TestContextSwitching() {
AppSettings settings = new AppSettings(true);
settings.setOpenCLSupport(true);
settings.setVSync(true);
settings.setWidth(800);
settings.setHeight(600);
settings.setOpenCLPlatformChooser(CustomPlatformChooser.class);
//settings.setRenderer(AppSettings.JOGL_OPENGL_FORWARD_COMPATIBLE);
setSettings(settings);
setShowSettings(false);
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.setWidth(useDM.getWidth());
settings.setHeight(useDM.getHeight());
settings.setBitsPerPixel(useDM.getBitDepth());
try {
BufferedReader br = new BufferedReader(new FileReader(resfile));
settings.setWidth(Integer.parseInt(br.readLine()));
settings.setHeight(Integer.parseInt(br.readLine()));
try {
settings.setWidth(1280);
settings.setHeight(720);
settings.setWidth(1280);
settings.setHeight(720);
settings.setFullscreen(false);
settings.setWidth(xWin);
settings.setHeight(yWin);
settings.setBitsPerPixel(24);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.setWidth(useDM.getWidth());
settings.setHeight(useDM.getHeight());
settings.setBitsPerPixel(useDM.getBitDepth());
try {
BufferedReader br = new BufferedReader(new FileReader(resfile));
settings.setWidth(Integer.parseInt(br.readLine()));
settings.setHeight(Integer.parseInt(br.readLine()));
try {
settings.setWidth(1280);
settings.setHeight(720);
settings.setWidth(1280);
settings.setHeight(720);
settings.setFullscreen(false);
settings.setWidth(xWin);
settings.setHeight(yWin);
settings.setBitsPerPixel(32);
代码示例来源:origin: org.jmonkeyengine/jme3-core
/**
* Set the resolution for the rendering display
* @param width The width
* @param height The height
* (Default: 640x480)
*/
public void setResolution(int width, int height) {
setWidth(width);
setHeight(height);
}
代码示例来源:origin: net.sf.phat/phat-devices
public static void main(String[] args) {
Logger.getGlobal().setLevel(Level.ALL);
CreateScreenCommandTest app = new CreateScreenCommandTest();
app.setPauseOnLostFocus(false);
app.setShowSettings(false);
AppSettings settings = new AppSettings(true);
settings.setWidth(480);
settings.setHeight(800);
app.setSettings(settings);
app.start();
}
代码示例来源:origin: net.sf.phat/phat-devices
public static void main(String[] args) {
AttachDeviceToBodyTest test = new AttachDeviceToBodyTest();
PHATApplication phat = new PHATApplication(test);
phat.setDisplayFps(true);
phat.setDisplayStatView(true);
AppSettings settings = new AppSettings(true);
settings.setWidth(1024);
settings.setHeight(720);
phat.setSettings(settings);
phat.start();
}
代码示例来源:origin: net.sf.phat/phat-server
public static void main(String[] args) {
SensorPresenceHouseTest test = new SensorPresenceHouseTest();
PHATApplication phat = new PHATApplication(test);
phat.setDisplayFps(true);
phat.setDisplayStatView(false);
AppSettings settings = new AppSettings(true);
settings.setTitle("PHAT");
settings.setWidth(1280);
settings.setHeight(960);
phat.setSettings(settings);
phat.start();
}
代码示例来源:origin: net.sf.phat/phat-server
public static void main(String[] args) {
WalkingAroundHouseAccTest test = new WalkingAroundHouseAccTest();
PHATApplication phat = new PHATApplication(test);
phat.setDisplayFps(true);
phat.setDisplayStatView(false);
AppSettings settings = new AppSettings(true);
settings.setTitle("PHAT");
settings.setWidth(1280);
settings.setHeight(720);
phat.setSettings(settings);
phat.start();
}
代码示例来源:origin: net.sf.phat/phat-api-server
public static void main(String[] args) {
JsonRpcTest test = new JsonRpcTest();
PHATApplication phat = new PHATApplication(test);
phat.setDisplayFps(true);
phat.setDisplayStatView(false);
AppSettings settings = new AppSettings(true);
settings.setTitle("PHAT");
settings.setWidth(1280);
settings.setHeight(720);
phat.setSettings(settings);
phat.start();
}
代码示例来源:origin: net.sf.phat/phat-devices
public static void main(String[] args) {
PresenceSensorTest test = new PresenceSensorTest();
PHATApplication phat = new PHATApplication(test);
phat.setDisplayFps(true);
phat.setDisplayStatView(false);
AppSettings settings = new AppSettings(true);
settings.setTitle("PHAT");
settings.setWidth(1280);
settings.setHeight(960);
phat.setSettings(settings);
phat.start();
}
代码示例来源:origin: net.sf.phat/phat-server
public static void main(String[] args) {
AccelerometerParkinsonTest test = new AccelerometerParkinsonTest();
PHATApplication phat = new PHATApplication(test);
phat.setDisplayFps(true);
phat.setDisplayStatView(false);
AppSettings settings = new AppSettings(true);
settings.setTitle("PHAT");
settings.setWidth(640);
settings.setHeight(480);
phat.setSettings(settings);
phat.start();
}
代码示例来源:origin: net.sf.phat/phat-server
public static void main(String[] args) {
RemoteAccelerometerParkinsonTest test = new RemoteAccelerometerParkinsonTest();
PHATApplication phat = new PHATApplication(test);
phat.setDisplayFps(true);
phat.setDisplayStatView(false);
AppSettings settings = new AppSettings(true);
settings.setTitle("PHAT");
settings.setWidth(640);
settings.setHeight(480);
phat.setSettings(settings);
phat.start();
}
代码示例来源:origin: net.sf.phat/phat-server
public static void main(String[] args) {
ScreenAVDTest test = new ScreenAVDTest();
PHATApplication phat = new PHATApplication(test);
phat.setDisplayFps(true);
phat.setDisplayStatView(false);
AppSettings settings = new AppSettings(true);
settings.setTitle("PHAT");
settings.setWidth(640);
settings.setHeight(480);
phat.setSettings(settings);
phat.start();
}
内容来源于网络,如有侵权,请联系作者删除!