Updated Simplified Block diagram
Package List: | |
net.sourceforge.sogl.engine |
gmEngine gmCamera gmWnd |
net.sourceforge.sogl.engine.input |
gmInput gmMouse gmKeybd gmJoystick |
net.sourceforge.sogl.engine.objects |
gm2Md2Model gmNode gmObject gmPositionNode gmVector |
net.sourceforge.sogl.engine.sound | gmSound |
net.sourceforge.sogl.engine.textures | gmTexture |
net.sourceforge.sogl.engine.world | gmWorld gmEntity gmParticleSys gmTerrain |
Classes | Variables | Methods |
gmNode | public gmNode parentNode public gmNode childNode public gmNode prevNode public gmNode nextNode |
public boolean hasParent() public boolean hasChild() public boolean isFirstChild() public boolean isLastChild() public void attachToParent(gmNode newParent) public void attachToChild(gmNode newChild) public void detach() public int countNodes() public gmNode() public gmNode(gmNode node) |
gmWnd | protected HWND? hwnd protected HDC? hdc protected HPALETTE? protected HGLRC? hglrc private int iPrevWidth private int iPrevHeight public int width public int height public int centerX public int centerY public int bitsPerPixel public int aspect public int mouseX public int mouseY public boolean fullScreen public float mouseSensitivity public boolean useDInput public gmInput inputSystem |
protected LRESULT? APIENtrY? WndProcOGL(HWND? hwnd, UINT? uMsg, WPARAM? wParam, LPARAM? lParam) private void setupPixelFormat() private void setupPalette() private boolean create() private void destroy() private void paletteChanged(WPARAM? wParam) private boolean queryNewPalette() private void paint() private void size() private void mouseMove() private int getMouseX(LPARAM? lparam) private int getMouseY(LPARAM? lparam) private float getNormalizedPosX(LPARAM? lparam) private float getNormalizedPosY(LPARAM? lparam) private beginFullScreen(int w, int h, int b) private void endFullScreen() protected boolean onCreate() protected boolean onClose() protected void onSize() protected void onMouseDown(float x, float y) protected void onMouseUpL() protected void onMouseUpR() protected void onMouseMove(int x, int y, int centerX, int centerY) protected void onMouseMove(int deltaX, int deltaY) protected void onMouseDragL(int x, int y, int dx, int dy) protected void onMouseDragR(int x, int y, int dx, int dy) protected void onCommand(WORD wNotifyCode, WORD wID, HWND hwndCtrl) protected void onInitMenu(HMENU hMenu) protected void onKeyDown(int nVertKey) protected void onChar(char c) public gmWnd() |
gmInput |
private gmKeyboard oKeyBoard private gmMouse oMouse private gmJoystick oJoystick |
public gmInput() public boolean initialize(HWND? hwnd, HINSTANCE? appInstance, boolean isExclusive, DWORD? flags) public boolean shutDown() public void acquireAll() public void unacquireAll() public gmKeybd getKeyboard() public gmMouse getMouse() public gmJoystick getJoystick() public boolean update() public boolean keyDown(char key) public boolean keyUp(char key) public boolean buttonDown(int button) public boolean buttonUp(int button) public void getMouseMovement(int dx, int dy) |
gmCamera | private int initPosition private int finalPosition private int initLookAt private int finalLookAt private int lookAtVel private int lookAtAccel public int position public int velocity public int acceleration public int lookAt public int up public int forward public int right public float yaw public float pitch |
private void updateLookAt() private void updateMoveTo() public gmCamera() public gmCamera(int width, int height) public gmCamera(int look) public gmCamera(int pos, int look) public void lookAt(gmObject obj) public void lookAtNow(gmObject ob) public void moveTo(gmObject obj) public void moveToNow(gmObject obj) public void moveToNow(int x, int y, int z) public void rotateYaw(int radians) public void rotatePitch(int radians) public void rotateRoll(int radians) public void animate(int deltaTime) |
gmParticleSys |
protected gmParticleSys? particlesList protected int maxParticles protected int numParticles protected gmVector origin protected float accumulatedTime protected gmVector force |
public gmParticleSys(int maxParticles, vector3_t origin) public void update(float elapsedTime) public void Render() public int emit(int numParticles) public void initializeSystem() public void killSystem protected void initializeParticle(int index) |
gmObject |
public int position public int velocity public int acceleration public int size |
protected void onAnimate(int deltaTime) protected void onDraw(gmCamera cam) protected void onCollision(gmObject collisionObject) protected void onPrepare() protected void draw(gmCamera cam) protected void animate(int deltatime) protected void processCollisions(gmObject obj) protected void prepare() protected gmObject findRoot() public gmObject() |
gmSound |
private String sndSegment private boolean is3DSound private ? buffer3dSnd |
public gmSound() public void setSegment(String sndSegment) public String getSegment() public void set3DBuffer(?) public ? get3DBuffer() public void set3DParams(float minDistance, float maxDistance) public void set3DPos(float x, float y, float z) public gmSound create(String filename, boolean is3DSound) public void play(gmSound audio, long repeats) public void stop(gmSound audio) public void setListenerPos(float camerax, float cameray, float cameraz) public void setListenerRolloff(float rolloff) public void setListenerOrientForward(float forwardx, float forwardy, float forwardz) public void setListenerOrientTop(float topx, float topy, float topz) |
gmEngine |
protected Timer timer private gmCamera gameCamera private gmWorld gameWorld |
public gmEngine() public gmEngine(String szName, boolean fScreen, int w, int h, int b) public LRESULT? enterMessageLoop() protected gmCamera onGetCamera() protected gmWorld onGetWorld() protected void onPrepare() protected void onMouseDownL(float x, float y) protected void onMouseMove(int deltaX, int deltaY) protected void onMouseMove(int x, int y, int centerX, int centerY) protected void onKeyDown(int nVirtKey) protected void gameCycle(float deltaTime) protected void onPrepare() protected gmCamera onGetCamera protected gmWorld protected checkInput(float deltaTime) |
gmWorld |
public gmCamera camera public gmTerrain terrain public gmSound |
public gmWorld() public gmWorld(gmCamera c) public void loadWorld() public void unLoadWorld() public void animate(float deltaTime) public void draw(gmCamera camera) public void prepare() protected void onAnimate(float deltaTime) protected void onDraw(gmCamera camera) protected void onPrepare() |
gmEntity |
public float direction public gmSound entitysound public int stateStart public int stateEnd public float deltaTime public float animSpeed |
public void loadAudio(gmSound audiosystem, String filename, boolean is3Dsound) |
gmMouse | private String m_state |
public gmMouse() public boolean buttonDown(int button) public boolean buttonUp(int button) public int getWheelMovement() public void getMovement(int dx, int dy) public boolean update() public boolean acquire() public boolean unacruire() |
gmParticleSys |
private gmVector pos private gmVector prevPos private gmVector velocity private gmVector acceleration private float energy private float size private float sizeDelta private float weight private float weightDelta private float color private float colorDelta protected int maxParticles protected int numParticles protected gmVector origin protected float accumulatedTime protected gmVector force |
public gmParticleSys(int maxParticles, gmVector origin) public void update(float elapsedTime) public void render() public int emit(int numParticles) public void initializeSystem() public void killSystem() |
gmVector |
public int x public int y public int z |
public gmVector(int a, int b, int c) public gmVector(gmVector vec) public boolean isVectorContentEqual(gmVector vec) public boolean isVectorLengthsEqual(gmVector vec) public gmVector getVectorIncremented(gmVector vec) public gmVector getVectorDecremented(gmVector vec) public gmVector getVectorCrossProduct(gmVector vec) public gmVector getVecMultipliedByScalar(int s) public gmVector getVecDividedByScalar(int s) public gmScalar getVecDotProduct(gmVector vec) public gmScalar getVecLength() public gmVector getUnitVector() public void normalize() public float getAngleBetweenVecAndNormalVec(gmVector normalVec) public gmVector reflection(gmVector vec) |
gmTexture |
protected int height protected int width |
public gmTexture(int width, int height) public int getWidth() public int getHeight() public short getColor(int x, int y) public static gmTexture createTexture(BufferedImage image) public void setTexture(gmTexture texture) public void render(int offset, int left, int right) |
gmMd2Model |
private int numFrames private int numvertices private int numTrianges private int numSkins private int frameSize private int currentFrame private int nextFrame private float interpol private gmTexture txtureCoordList private gmVector vertexList private gmTexture modelTex |
public gmMd2Model() public int loadModelAndSkin(String modelFile, string skinFile) public int loadModel(String modelFile) public int loadSkin(String skinFile) public int setTexture(texture_t texture) public animate(int startframe, int endFrame, float percent) public renderFrame(int keyFrame) public int unLoad() |
gmKeybd |
private String keys |
public boolean keyDown(char key) public boolean keyUp(char key) public boolean update() public clear() public boolean acquire() public unacquire() |