From: Dmitry A. Kazakov <mailbox@dmitry-kazakov.de>
Subject: Re: Overloading procedures with Float and Long_Float types
Date: Tue, 09 Mar 2004 10:24:54 +0100
Date: 2004-03-09T10:24:54+01:00 [thread overview]
Message-ID: <hu1r409sbo2ntrkr8g25qsq065b2kjmsgj@4ax.com> (raw)
In-Reply-To: 404c9cae.0@entanet
On Mon, 8 Mar 2004 16:17:42 -0000, "Luke Guest" <lguest@bubball.com>
wrote:
>> > Translate calls an imported glTranslate[fd] procedure depending on the
>> > parameter types.
>> >
>> Ah, you're calling a function with no return type which modifies a
>> hidden matrix, in place -- not a very good software design, IMHO.
>
>Hang on. Do you know anything about OpenGL? The matrix is in hardware (or
>software if the implementation is software) so, it's actually good design as
>it abstracts out the matrix.
I does not, because it cannot. The operation has a side effect on the
graphic context, no matter whether it is a hardware or sofware one.
This side effect is the only thing the operation actually does. So
clearly, the context has to be exposed as a parameter. A good design
would have the context (or a handle to it) as an in out parameter.
Then a good design would also clarify all things concerning multiple
contexts, concurrent access to a context etc. Further a good design
would never use both float and double, provided that probably either
both are same for the underlying hardware or one of them (float?) is
extremely inefficient.
--
Regards,
Dmitry Kazakov
www.dmitry-kazakov.de
next prev parent reply other threads:[~2004-03-09 9:24 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-08 0:17 Overloading procedures with Float and Long_Float types Luke A. Guest
2004-03-08 3:49 ` James Rogers
2004-03-08 8:16 ` Luke A. Guest
2004-03-08 8:20 ` Preben Randhol
2004-03-08 9:06 ` Luke A. Guest
2004-03-08 10:10 ` Dmitry A. Kazakov
2004-03-08 14:05 ` Luke Guest
2004-03-08 14:07 ` Preben Randhol
2004-03-08 15:10 ` Luke Guest
2004-03-08 16:20 ` Preben Randhol
2004-03-08 16:28 ` Luke Guest
2004-03-08 17:58 ` Preben Randhol
2004-03-09 8:55 ` Dmitry A. Kazakov
2004-03-08 16:50 ` Hyman Rosen
2004-03-08 16:55 ` Luke Guest
2004-03-08 17:32 ` Hyman Rosen
2004-03-08 14:37 ` Dmitry A. Kazakov
2004-03-08 15:18 ` Luke Guest
2004-03-08 19:52 ` Gautier Write-only
2004-03-08 20:34 ` Luke A. Guest
2004-03-09 8:40 ` Dmitry A. Kazakov
2004-03-08 12:46 ` David C. Hoos
2004-03-08 14:03 ` Luke Guest
2004-03-08 14:54 ` Georg Bauhaus
2004-03-08 15:19 ` Luke Guest
2004-03-08 16:04 ` David C. Hoos
2004-03-08 16:17 ` Luke Guest
2004-03-09 9:24 ` Dmitry A. Kazakov [this message]
2004-03-08 19:58 ` Gautier Write-only
[not found] ` <1faf01c40527$0a364a10$b101a8c0@sy.com>
2004-03-08 16:21 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox