PVRShell has winmain

This topic contains 2 replies, has 2 voices, and was last updated by  mkandula 6 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30622

    mkandula
    Member

    Hi,

    The powerVR SDK has the winmain included in the PVRShell.cpp which makes me either have my renderer module to be in the .exe project or end up as a static lib (all the provided samples are static lib projects).

    I want to separate out my renderer into a dynamic lib. But at the same time I would like to use the PVR tools which must be compiled with it and this makes it hard to separate it out from the PVRShell.cpp which includes winman and ends up in the .exe project.

    It would have been better if winmain was separated from PVRShell. Or is there an easy way I am missing to understand 😐

    Hope I made sense 🙂 Please let me know and I will try explaining in detail.

    Thanks.

    mkandula2011-08-31 15:13:05

    #35095

    Joe Davis
    Member

    If you wanted to use the Shell in a dynamic library on Windows, you could replace the WinMain with a your own entry point(e.g. DllMain).

    There is no dependance between the Tools and the Shell. You can compile the Tools as a static or dynamic library and use it however you need to.

    #35096

    mkandula
    Member

    THanks for the reply.

    >you could replace the WinMain with a your own entry point(e.g. DllMain)

    Very true !! But I request if the .cpp file from the PVR SDK can include a define like _PVRDLL etc and toggle between winmain and dllmain, it will be good 🙂

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