From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,d274f280c8c4a8b8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-07 01:06:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!gate.dornier.dasa.DE!not-for-mail From: Joachim =?ISO-8859-1?Q?Schr=F6er?= Newsgroups: comp.lang.ada Subject: Re: Mainstream Ada Date: Thu, 07 Mar 2002 10:06:39 +0100 Message-ID: <3C872D9F.9070401@dornier.eads.net> References: <3C77CF8C.93F1837@adaworks.com> <3C78943B.9030600@mail.com> <3C8601CB.6050906@dornier.eads.net> NNTP-Posting-Host: gate.dornier.dasa.de (53.122.46.165) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1015491967 12917051 53.122.46.165 (16 [76083]) User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us Xref: archiver1.google.com comp.lang.ada:20894 Date: 2002-03-07T10:06:39+01:00 List-Id: Al Mole wrote: > Would you say it was advisable to attempt a games engine in Ada using the > OpenGL bindings ? > Why not? I think it has been done already. There were some threads on CLA concerning this topic. My experience is mainly 2D with a few 3D components you need for flight instruments (except this XEarth variant published on the link I gave yesterday). The key abstractions I made may be implemented in each OO language as there is: incorporate the state of a rigid body (3D position and 3D attitude) in the object; push/pop the modelview matrix before translate/rotate using that state. So you may implement modular graphical objects using relative coordinate systems. But in Ada besides finding errors early you have some benefits, e.g.: Neither in the Win32 nor in the GLUT implementation I got these bloody timers to work. So I implemented animation by an extra task. Or: A C-program generated from a Simulink aircraft model feeds the OpenGL program with the actual aircraft state which is used to drive the instruments. The flight model runs with a fixed frequency that is dictated to stabilize the simulator control loops. The OpenGL program runs as fast as the actual OpenGL HW allows. A protected object synchronizes the access to this data. I newer used semaphores or so to solve those kind of problems. You just don't need to care about this low level stuff. And the Java guys with their synchronized and thread classes may impress a C++ programmer but no Ada95 one. Best regards > "Joachim Schr�er" wrote in message > news:3C8601CB.6050906@dornier.eads.net... > >>Kevin Cline wrote: >> >> >>>Hyman Rosen wrote in message >>> > news:<3C78943B.9030600@mail.com>... > >>>>Richard Riehle wrote: >>>> >>>> >>>>>At present, functional requirements overshadow non-functional >>>>> >>>>>requirements in the world of commercial software. That is, >>>>>features are easier to sell than quality. >>>>> >>>>You know we usually fight over Ada vs. C++ issues, but I think >>>>I'm going to take Ada's side here. I don't like Ada all that >>>>much, but it's mostly for stylistic reasons. I believe, however, >>>>that an Ada programmer can pound out features just as well, and >>>>just as quickly, as a Java or C++ programmer. Are you really >>>>suggesting that commercial software developers who choose Ada >>>>will have to forego adding features to their software? >>>> >>>> >>>The fundamental problem continues to be the lack of high-quality >>>bindings to non-Ada facilities, e.g. OpenGL, Qt, relational databases, >>> > etc. > >>>This does indeed make it much more difficult to add features >>>to Ada applications. >>> >>> >>There are bindings to nearly all important libraries. I developed the >>instrument displays of flight simulators in Ada on top of OpenGL. >>The kernel of the class library is free and can be found on >>www.adapower.com/schroer >>There is also the possibility to generate your own bindings e.g. >>with C2Ada. >> >> >>Best regards >>J. Schr�er >> >> > >