-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert Konrad
committed
May 23, 2013
0 parents
commit 951dd60
Showing
306 changed files
with
187,970 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
21
Backends/Android/Java-Sources/com/ktxsoftware/kt/KtActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
Backends/Android/Java-Sources/com/ktxsoftware/kt/KtLib.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
27
Backends/Android/Java-Sources/com/ktxsoftware/kt/KtRenderer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
|
||
} |
Oops, something went wrong.