【Ecere C】 eC 【C上位互換】©2ch.net

2016/08/22(月) 13:59:35.39ID:01M+MFvA
3Dも充実のC言語上位互換オブジェクト指向プログラミング言語
eC ( Ecere C ) について語りましょう

http://ec-lang.org/

SDK
http://ecere.org/
source
https://github.com/ecere/ecere-sdk
2016/08/22(月) 14:00:44.83ID:01M+MFvA
https://en.wikipedia.org/wiki/EC_%28programming_language%29

overview
http://ec-lang.org/overview/
programming guide
http://ecere.com/tao.pdf
2016/08/22(月) 14:04:17.89ID:01M+MFvA
class HelloApp : Application
{
void Main()
{
PrintLn("Hello, World!!");
}
}
2016/08/22(月) 14:19:04.79ID:01M+MFvA
import "ecere"
class MyApp : GuiApplication{ driver = "OpenGL"; };
Camera camera{ fixed, position = Vector3D { 0, 0, -350 }, orientation = Euler { 0, 0, 0 }, fov = 53; };
Light light{ diffuse = lightCoral; orientation = Euler { pitch = 10, yaw = 30 }; };
class Hello3D : Window{
text = "Hello, 3D"; background = black; borderStyle = sizable;
hasMaximize = true; hasMinimize = true; hasClose = true;
clientSize = { 304, 162 };
Cube cube{};
bool OnLoadGraphics(){
cube.Create(displaySystem);
cube.transform.scaling = { 100, 100, 100 };
cube.transform.orientation = Euler { 50, 30, 50 };
cube.UpdateTransform();
return true;
}
void OnResize(int w, int h){
camera.Setup(w, h, null);
camera.Update();
}
void OnRedraw(Surface surface){
surface.Clear(depthBuffer);
display.SetLight(0, light);
display.SetCamera(surface, camera);
display.DrawObject(cube);
display.SetCamera(surface, null);
}
}

Hello3D hello3D {};
レスを投稿する

5ちゃんねるの広告が気に入らない場合は、こちらをクリックしてください。

ニューススポーツなんでも実況