Author: tremblin

  • toptr in BooBoo

    The next version of BooBoo will have toptr which gives you a pointer from a string with a variable name in it.

    number f
    file_open f "word.txt" "r"
    string s
    file_read f s
    file_close f
    call `(toptr s)
    function foo
    {
            print "foo!\n"
    }
    function bar
    {
            print "bar!\n"
    }
    function baz
    {
            print "baz!"
    }

    Now if word.txt contains “foo”, “bar” or “baz” the appropriate function is called.

  • What Do you think of some cheap reflection?

    For example:

    number x
    = x 100
    string s
    = s (varname x)
    print "%\n" s ; prints "x"
    = `(tovar s) 777 ; x is now 777
  • Next Version of BooBoo will have lib dependent texture flipping

    OpenGL uses upside down textures, D3D uses right side up. BooBoo/Shim has sheltered this for the most part, but it’s a pain in the arse so I’m storing textures in lib dependent format from now on. The 3D examples change, it will need to have a if (== TRUE D3D9) block where texture coordinates are used, and flip them vertically. Or I might just drop D3D altogether…

  • BooBoo texture access

    image_read_texture reads an image into a BooBoo vector for manipulation. image_to_texture creates a new texture from such a vector (which can be fully created oneself or gotten from image_read_texture) and image_update updates an existing texture with new data (faster.)

    This isn’t live yet… next version will have these 3 functions.