Replacement for utils.rotation

Home Forums General Programming Replacement for utils.rotation

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5432
    TK.
    Participant
      • Topics: 6
      • Replies: 42
      • Total: 48

      It seems that the utils.rotation function isn’t available anymore.
      This function still exists in Source/Lua/JuceClasses/LAffineTransform.cpp, but I’ve no glue how to use it.


      @Atom
      : could you please bring some light into this topic?

      Best Regards, Thorsten.

      #5435
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        There is an example in the Panels dir of each Ctrlr installation (if not the example panels are always in the repo here: https://ctrlrv4.svn.sourceforge.net/svnroot/ctrlrv4/nightly/Panels/)

        The new API simply uses direct JUCE class binding so no more utils.* stuff unless it’s really a utility thing. In this case the AffineTransform class needs to be used. So far the list of bound classes and methods i managed to bind successfully (it’s not all that simple) are in the directory https://ctrlrv4.svn.sourceforge.net/svnroot/ctrlrv4/nightly/Source/Lua/JuceClasses/ as source files they’re pretty straight forward there is no actual code there just a class name and a list of .def()s that bind a method. So have a look at that when in doubt. If you want to know how to call a specific method/create class the JUCE API docs are available at: http://www.rawmaterialsoftware.com/juce/api/. If the class id bound directly then this API applies, if i had to override some methods like in the MemoryBlock class the source code will tell you how it changed (i know i need to document this). I try to keep the names the same so 99% only the parameters to the method change (for example you can’t pass “void *” as a parameter so i had to wrap a pair of (void *, int) as a MemoryBlock parameter)

        • This reply was modified 11 years, 3 months ago by atom.
        #5440
        atom
        Keymaster
          • Topics: 159
          • Replies: 2945
          • Total: 3104
          • ★★★★★

          Also i forgot to reply (a lot has happened today).
          If you can send me the DIFF for your build of the sources and maybe a XCode project file i’ll try to move to XCode4 finally (i’ve been delaying that for a long time now i just can’t grasp XCode4 and it’s iTunes like user interface)

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The forum ‘Programming’ is closed to new topics and replies.
        There is currently 0 users and 120 guests online
        No users are currently active
        Forum Statistics
        Threads: 2,495, Posts: 17,374, Members: 77,605
        Most users ever online was 12 on January 22, 2019 3:47 pm
        Ctrlr