3Dも充実のC言語上位互換オブジェクト指向プログラミング言語
eC ( Ecere C ) について語りましょう
http://ec-lang.org/
SDK
http://ecere.org/
source
https://github.com/ecere/ecere-sdk
【Ecere C】 eC 【C上位互換】©2ch.net
2016/08/22(月) 13:59:35.39ID:01M+MFvA
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
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!!");
}
}
{
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 {};
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 {};
レスを投稿する
ニュース
- 【外交】元台湾総統・馬英九氏、高市首相発言に「台湾を危険にさらす」台湾海峡の問題は「両岸の中国人が自ら話し合うべき」★2 [1ゲットロボ★]
- 高市首相答弁を“引き出した”立民・岡田克也氏が改めて説明「なぜ慎重な答弁をされなかったのか。非常に残念に思っている」 ★8 [ぐれ★]
- 「母の部屋に安倍氏が表紙の機関誌が」「(安倍氏が被害者なのは)不思議に思いませんでした」山上被告の妹が証言 [おっさん友の会★]
- 【野球】大谷翔平、佐々木朗希、山本由伸らがWBC辞退なら広がる不協和音… 『過去イチ盛り上がらない大会』になる可能性も★2 [冬月記者★]
- 【次の一手】台湾問題で小林よしのり氏が私見「まさに戦争前夜」「ただちに徴兵制を敷いて、高市支持者を最前線へ」… ★5 [BFU★]
- 【国際】ロシアはすでに戦争準備段階――ポーランド軍トップが警告 [ぐれ★]
- 【高市売り】円安、止まらず!凄い勢いで暴落中。157円へ [219241683]
- 1,000万円のBMWに擦ってしまった札幌のガキ、捕らえられてガチで詰む [329329848]
- 【悲報】ヤフコメ民「中国が水産物を輸入禁止にするなら、日本国民向けに安く販売すればいい。中国依存から脱するべき」 [153736977]
- 中国外務省局長 「ポケットに手を入れていたのは寒いから」 ⬅︎これ [279254606]
- 麻生太郎、腹をくくる「日本国民が高市を総理に選んだ。であるならば最期まで支えるのが私たちの役目」 [329329848]
- 【悲報】自民党のヒゲ、外務省局長と中国高官の写真にブチギレwwwwwwwwwwwwww [834922174]
