Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Poking functions of a opengl wrapper

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2002
    Posts
    24

    Poking functions of a opengl wrapper

    how would i be able to make a program that could poke run certain off sets in the wrapper
    eg.

    in dll
    glow = false;
    shine = false;

    how would i write a program to poke those in the memory to true? i have a wrapper and this is another wrapper that has fuctions i want to use but i have the lack of knowledge on how to poke offsets in memory using a diff dll.

    LOL im even confused on what i wrote... thank you for your time.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: Poking functions of a opengl wrapper

    This a little bit way of topic I think, I can't see anything close to OpenGL, not even close to graphics of any kind....

    Mikael

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2002
    Posts
    24

    Re: Poking functions of a opengl wrapper

    okay i have a opengl wrapper i made that wraps around a different wrapper that is compiled.

    OGL wrapper < .dll < %sysroot%/opengl32.dll

    "a" "b" "c"

    well i want to make my wrapper "a" poke functions of the .dll "b" so i can make use of something. i want to poke a function in b using a before it gets called to c.

  4. #4
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: Poking functions of a opengl wrapper

    Hi !

    Not sure I get what you want to do, if a variable in the dll is exported you can access it and modify it without any dirty tricks using it's name, if it is not exported then it is not available outside the dll, and you would not be able to find it without having the source code (or at least the obj files).

    Trying to mess with offsets in a dll is not very wise to do, it usually ends up in a big mess.

    Mikael

Posting Permissions

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