Donate Now Goal amount for this month: 100 USD, Received: 0 USD (0%)
Donate to support this site and ThinBASIC project development

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
    50
    Posts
    3,199
    Blog Entries
    2
    Rep Power
    329

    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
    49
    Posts
    7,961
    Blog Entries
    2
    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
    Win10Pro 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
    49
    Posts
    7,961
    Blog Entries
    2
    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
    Win10Pro 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,802
    Rep Power
    390

    Re: Sine Wave Dynamic Texture Fonty thingy

    Thanks Mike and Eros.

  5. #15
    thinBasic MVPs Michael Clease's Avatar
    Join Date
    May 2007
    Location
    UK
    Posts
    1,425
    Blog Entries
    1
    Rep Power
    151
    updated first post
    Home Desktop : Windows 7 - 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 : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - 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

Posting Permissions

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