Skip to content

Commit

Permalink
First public revision.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Konrad committed May 23, 2013
0 parents commit 951dd60
Show file tree
Hide file tree
Showing 306 changed files with 187,970 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/Examples/Shader/build
/Tools/kake
/Tools/kfx
/Examples/Shader/Deployment/shader.frag
/Examples/Shader/Deployment/shader.vert
/Examples/Blocks/build
/Examples/Blocks/Deployment/shader.frag
/Examples/Blocks/Deployment/shader.vert
21 changes: 21 additions & 0 deletions Backends/Android/Java-Sources/com/ktxsoftware/kt/KtActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.ktxsoftware.kt;

import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class KtActivity extends Activity {
private GLSurfaceView view;

@Override
protected void onCreate(Bundle state) {
super.onCreate(state);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); // (NEW)
view = new GLSurfaceView(this);
view.setRenderer(new KtRenderer(getApplicationContext()));
setContentView(view);
}
}
10 changes: 10 additions & 0 deletions Backends/Android/Java-Sources/com/ktxsoftware/kt/KtLib.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.ktxsoftware.kt;

public class KtLib {
static {
System.loadLibrary("Kt");
}

public static native void init(int width, int height, String apkPath);
public static native void step();
}
27 changes: 27 additions & 0 deletions Backends/Android/Java-Sources/com/ktxsoftware/kt/KtRenderer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.ktxsoftware.kt;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

import android.content.Context;
import android.opengl.GLSurfaceView;

public class KtRenderer implements GLSurfaceView.Renderer {
private Context context;

public KtRenderer(Context context) {
this.context = context;
}

public void onSurfaceCreated(GL10 gl, EGLConfig config) {

}

public void onDrawFrame(GL10 gl) {
KtLib.step();
}

public void onSurfaceChanged(GL10 gl, int width, int height) {
KtLib.init(width, height, context.getApplicationInfo().sourceDir);
}
}
45 changes: 45 additions & 0 deletions Backends/Android/Sources/Kt/Sound.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#include "stdafx.h"
#include <Kt/Sound/Sound.h>
#include <Kt/Sound/Music.h>

using namespace Kt;

Sound::SoundHandle::SoundHandle(Kt::Text filename, bool loops) {

}

Sound::SoundHandle::~SoundHandle() {

}

void Sound::SoundHandle::play() {

}

void Sound::SoundHandle::setVolume(float volume) {

}

int Kt::Sound::SoundHandle::position() {
return 0;
}

int Kt::Sound::SoundHandle::length() {
return 0;
}

void Sound::init() {

}

void Sound::shutdown() {

}

void Music::play(Kt::Text filename) {

}

void Music::stop() {

}
Loading

0 comments on commit 951dd60

Please sign in to comment.