Skip to content

Commit 24e91cd

Browse files
committed
Merge pull request fdorg#448 from Gama11/ProjectTemplatesFixes
Fixes for some project templates
2 parents 9b69a49 + 65d18f3 commit 24e91cd

File tree

8 files changed

+29
-17
lines changed

8 files changed

+29
-17
lines changed

FlashDevelop/Bin/Debug/Projects/310 Haxe - Flash Project/Project.hxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<movie fps="30" />
99
<movie width="800" />
1010
<movie height="600" />
11-
<movie version="14" />
11+
<movie version="12" />
1212
<movie minorVersion="0" />
1313
<movie platform="Flash Player" />
1414
<movie background="#FFFFFF" />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
An ActionScript 3 project written in the Haxe language
1+
A Flash project written in the Haxe language

FlashDevelop/Bin/Debug/Projects/315 Haxe - AIR Projector/Project.hxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<movie fps="30" />
99
<movie width="800" />
1010
<movie height="600" />
11-
<movie version="14" />
11+
<movie version="12" />
1212
<movie minorVersion="0" />
1313
<movie platform="AIR" />
1414
<movie background="#FFFFFF" />

FlashDevelop/Bin/Debug/Projects/380 Haxe - OpenFL Project/Project.hxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<output>
55
<movie outputType="Application" />
66
<movie input="" />
7-
<movie path="application.xml" />
7+
<movie path="project.xml" />
88
<movie fps="0" />
99
<movie width="0" />
1010
<movie height="0" />

FlashDevelop/Bin/Debug/Projects/390 Haxe - Lime Project/Project.hxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<output>
55
<movie outputType="Application" />
66
<movie input="" />
7-
<movie path="project.lime" />
7+
<movie path="project.xml" />
88
<movie fps="0" />
99
<movie width="0" />
1010
<movie height="0" />
Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
11
package $(PackageName);
2-
import lime.gl.GL;
3-
import lime.Lime;
2+
3+
import lime.app.Application;
4+
import lime.graphics.opengl.GL;
5+
import lime.graphics.RenderContext;
46

57
/**
68
$(CBI)* ...
79
$(CBI)* @author $(DefaultUser)
810
$(CBI)*/
911

10-
class Main {
11-
var lime:Lime;
12+
class Main extends Application $(CSLB){
13+
14+
public function new() $(CSLB){
15+
super();
16+
}
1217

13-
public function new () {
18+
public override function init(context:RenderContext):Void $(CSLB){
19+
switch (context) $(CSLB){
20+
case OPENGL(gl):
21+
22+
default:
23+
}
1424
}
1525

16-
public function ready (lime:Lime):Void {
17-
this.lime = lime;
26+
public override function render(context:RenderContext):Void $(CSLB){
27+
switch (context) $(CSLB){
28+
case OPENGL(gl):
29+
gl.viewport(0, 0, window.width, window.height);
30+
gl.clearColor(1.0, 1.0, 1.0, 1.0);
31+
gl.clear(gl.COLOR_BUFFER_BIT);
32+
33+
default:
34+
}
1835
}
1936

20-
private function render ():Void {
21-
GL.viewport (0, 0, lime.config.width, lime.config.height);
22-
GL.clearColor (1.0, 1.0, 1.0, 1.0);
23-
GL.clear (GL.COLOR_BUFFER_BIT);
24-
}
2537
}

0 commit comments

Comments
 (0)