CPVRTglesExt Init() to LoadExtensions()

This topic contains 4 replies, has 3 voices, and was last updated by  johnf 7 years, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30070

    johnf
    Member

    Hello,
    I’m using the 3_01_00_02 SDK for OMAP 3530.  I noticed that the CPVRTglesExt call for initializing extensions changed from Init() to LoadExtensions().  Is there a #define that can be used to decide which call to use?

    Thanks!,
    John

    #33758

    Gordon
    Moderator

    We updated the name of the function to make it a bit more descriptive some time ago in our code – the obvious solution would be to update refererences to this in your code if you can. We don’t plan to change the function name again, unless there is a very good reason.

    Aside from this being a bit of a pain to do in multiple projects is there a specific reason that you can’t do this?

    There is no #define provided as such.

    #33759

    johnf
    Member

    Hi Gordon,
    The reason I’m looking for a #define is because I have source which I’d like to build against old and newer versions of the PVR source.  I’ll try to derive another flag in my build system, based on the TI OMAP Graphics SDK release version.

    Thanks for your reply!
    ,
    John

    #33760

    Aaron
    Member

    You could probably make use of the ‘#define PVRSDK_VERSION’ in “…Buildssdkver.h” – while I can’t guarantee that won’t change, it hasn’t so far and is unique per SDK release.

    #33761

    johnf
    Member

    It looks like PVRSDK_VERSION is defined as a string and so cannot be used in a preprocessor expression like ‘#if VERSION_MAJOR == 2’, unless I’m missing some obvious/simple way to use it.  No big deal as I’ll find another #define elsewhere.

    Thanks,
    John

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.