Boost logo

Boost :

Subject: Re: [boost] boost::directx?
From: Artyom (artyomtnk_at_[hidden])
Date: 2009-06-07 06:53:29


Hello,

It is not about OpenGL, DirectX war, it is about Boost policy:

http://www.boost.org/development/requirements.html#Portability

Quote:
    1. A library's interface must portable and not restricted
       to a particular compiler or operating system.
    2. A library's implementation must if possible be portable
       and not restricted to a particular compiler or operating system.
       If a portable implementation is not possible, non-portable
       constructions are acceptable if reasonably easy to port to
       other environments, and implementations are provided for at
       least two popular operating systems (such as UNIX and Windows).

DirectX does is **strictly** Windows API, this violates requirement
of Boost library portability. You may create general 3D graphics library
with implementations in terms of DX for Win32 and OpenGL in terms
of UNIX, and add some extended features for OS specific API, just
like it is done in Boost.Interprocess or Boost.Asio. But in this case,
I think it is just simpler and less error prone to use OpenGL, at
least it would be consistent.

Best,
    Artyom

--- On Sun, 6/7/09, Christian Schladetsch <christian.schladetsch_at_[hidden]> wrote:

> From: Christian Schladetsch <christian.schladetsch_at_[hidden]>
> Subject: Re: [boost] boost::directx?
> To: boost_at_[hidden]
> Date: Sunday, June 7, 2009, 1:04 PM
> It is certainly untrue to claim that
> DirectX is not relevant to C++. I do
> not think, and many others would agree, that OpenGL is a
> real alternative.
>
> I have no wish in turning this into a flame war of DX vs
> GL. Whatever. I
> simply wanted to raise the idea of a boost::directx or
> boost::microsoft::directx namespace, to house common
> solutions.
>
> The reality is that DirectX is here, it is supported by
> manufacturers, it is
> needed by C++ developers, and it will stay here.
>
> On Sun, Jun 7, 2009 at 9:51 PM, Artyom <artyomtnk_at_[hidden]>
> wrote:
>
> >
> > Hi,
> >
> > DirectX can't be relevant because it is not cross
> platform API. I may
> > think of OpenGL but not DX.
> >
> > > Make this some kind of boost::graphics, target
> both dx
> > > and ogl or w/e in a
> > > seamless fashion, then you have something
> worthy.
> >
> > Artyom
> >
> >
> >
> >
> > _______________________________________________
> > Unsubscribe & other changes:
> > http://lists.boost.org/mailman/listinfo.cgi/boost
> >
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>

      


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk