📄 camera.java
字号:
/* Ogre4J
Copyright (C) 2002 macross
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.ogre4j;
import org.ogre4j.math.Vector3;
/**
* Camera
*
* TODO: complete Camera Methods
* @author Ivica Aracic <ivica.aracic@bytelords.de>
*/
public class Camera extends NativeObject implements MovableObject{
// more to come...
public native void setDetailLevel(int detailLevel);
public native int getDetailLevel();
public native void setPosition(float x, float y, float z);
public native void setPosition(Vector3 pos);
public native Vector3 getPosition();
public native void lookAt(float x, float y, float z);
public native void setFarClipDistance(float farDist);
public native float getFarClipDistance();
public native void setNearClipDistance(float nearDist);
public native float getNearClipDistance();
public native void setFOVy(float fovy);
public native void moveRelative(Vector3 d);
public native void roll (float degrees);
public native void yaw(float degrees);
public native void pitch(float degrees);
public native String getName();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -