Results 1 to 3 of 3

Thread: Proposed change to C++ bindings

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    9

    Proposed change to C++ bindings

    I have been playing around with OpenGL interop, and saw that the cl::Context constructor had properties set as NULL. From all of the OpenGL example code I have seen this parameter is for relaying OpenGL information to OpenCL, should this be changed (cl.hpp, line 1486) from:
    Code :
        Context(
            const VECTOR_CLASS<Device>& devices,
            cl_context_properties* properties = NULL,
            void (*notifyFptr)(
                const char *,
                const void *,
                ::size_t,
                void *) = NULL,
            void* data = NULL,
            cl_int* err = NULL)

    to

    Code :
        Context(
            const VECTOR_CLASS<Device>& devices,
    	cl_context_properties* properties,
            void (*notifyFptr)(
                const char *,
                const void *,
                ::size_t,
                void *) = NULL,
            void* data = NULL,
            cl_int* err = NULL)

    Thanks,
    Chris

  2. #2

    Re: Proposed change to C++ bindings

    Why change this? Is NULL not a reasonable default. The user can always specify another set of context properties.

  3. #3
    Junior Member
    Join Date
    May 2009
    Posts
    9

    Re: Proposed change to C++ bindings

    Nevermind, thought it was assignment.

Similar Threads

  1. change hardware profile
    By digi123 in forum OpenGL ES 1.X - fixed function hardware
    Replies: 0
    Last Post: 03-06-2010, 12:56 AM
  2. how to change coordinates
    By smartmobili in forum OpenVG and VGU
    Replies: 3
    Last Post: 11-03-2009, 04:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •