Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Sine Wave Dynamic Texture Fonty thingy

  1. #11
    Super Moderator Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Leverkusen, Germany
    Age
    47
    Posts
    3,127
    Blog Entries
    2
    vBActivity - Stats
    Points
    7
    Level
    1
    vBActivity - Bars
    Lv. Percent
    0%
    Weekly Activity
    1.89%
    Rep Power
    319

    Re: Sine Wave Dynamic Texture Fonty thingy

    yes, I can confirm that the parser is choking on this.

  2. #12
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    46
    Posts
    7,344
    Blog Entries
    2
    vBActivity - Stats
    Points
    219
    Level
    5
    vBActivity - Bars
    Lv. Percent
    46.83%
    Weekly Activity
    36.49%
    Rep Power
    10

    Re: Sine Wave Dynamic Texture Fonty thingy

    Problem is that since 2007 thinBasic has changed the way it passes arrays to external functions.
    It expect the initial element to which pass the reference

    If you want to make it working with current 1.8.x version change from
    [code=thinbasic]
    glTexImage2D(%GL_TEXTURE_2D, 0, %GL_RGB, %SIZEX, %SIZEY, 0, %GL_RGB, %GL_UNSIGNED_BYTE, texture)
    [/code]
    to
    [code=thinbasic]
    glTexImage2D(%GL_TEXTURE_2D, 0, %GL_RGB, %SIZEX, %SIZEY, 0, %GL_RGB, %GL_UNSIGNED_BYTE, texture(1))
    [/code]
    when you pass an array as parameter to an external function.

    I will see if I can improve.

    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  3. #13
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    46
    Posts
    7,344
    Blog Entries
    2
    vBActivity - Stats
    Points
    219
    Level
    5
    vBActivity - Bars
    Lv. Percent
    46.83%
    Weekly Activity
    36.49%
    Rep Power
    10

    Re: Sine Wave Dynamic Texture Fonty thingy

    I think I've fixed.
    If no (x) is specified in passing an array/matrix, (1) will be assumed.
    Will be present in next update
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  4. #14
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Clearwater, Florida, USA
    Posts
    3,769
    vBActivity - Stats
    Points
    7
    Level
    1
    vBActivity - Bars
    Lv. Percent
    0%
    Weekly Activity
    1.89%
    Rep Power
    383

    Re: Sine Wave Dynamic Texture Fonty thingy

    Thanks Mike and Eros.

  5. #15
    thinBasic MVPs Michael Clease's Avatar
    Join Date
    May 2007
    Posts
    1,405
    Blog Entries
    1
    vBActivity - Stats
    Points
    7
    Level
    1
    vBActivity - Bars
    Lv. Percent
    0%
    Weekly Activity
    1.89%
    Rep Power
    147
    updated first post
    Why is the world full of nobs trying to push my buttons!!

    Home Desktop : WinXP Pro SP3 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : WinXP Pro SP3 - Intel Pentium 4 - 3 Ghz - 512 MB - ATI Mobile Radeon 7000 IGP
    Work Desktop : WinXP Pro SP3 - Intel core 2 Quad Q8200 - 2.33 Ghz - 2 Gb - Quadro Fx 370

Page 2 of 2 FirstFirst 12

Similar Threads

  1. canvas sine curve
    By zak in forum UI (User Interface)
    Replies: 6
    Last Post: 19-08-2010, 21:05

Bookmarks

Posting Permissions

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