Raylib Wrapper Help
#17
I haven't had a chance to try it but I think these functions will assist us with the issue of the texture loading. I'll give it a try later if I have time.

Code: (Select All)
Function AsciiToUtf8byte$ (c As _Unsigned _Byte)
    Dim As String * 2 outch2
    Dim As String * 3 outch3
    If c < 128 Then
        Mid$(outch2, 1, 1) = Chr$(c)
        Mid$(outch2, 2, 1) = Chr$(0)
        AsciiToUtf8byte = outch2
    Else
        Mid$(outch3, 2, 1) = Chr$(_SHR(c, 6) Or &HC0)
        Mid$(outch3, 1, 1) = Chr$((c And &H3F) Or &H80)
        Mid$(outch3, 3, 1) = Chr$(0)
        AsciiToUtf8byte = outch3
    End If
End Function

Function AsciiToUtf8$ (instring As String)
    Dim As Long i
    Dim As String outstring
    For i = 1 To Len(instring)
        outstring = outstring + AsciiToUtf8byte(Asc(instring, i))
    Next
    AsciiToUtf8 = outstring
End Function
Ask me about Windows API and maybe some Linux stuff
Reply


Messages In This Thread
Raylib Wrapper Help - by LeftyG - 08-27-2022, 07:44 PM
RE: Raylib Wrapper Help - by SMcNeill - 08-27-2022, 09:33 PM
RE: Raylib Wrapper Help - by LeftyG - 08-27-2022, 09:39 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-29-2022, 03:44 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-29-2022, 07:13 PM
RE: Raylib Wrapper Help - by LeftyG - 08-29-2022, 09:29 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 02:43 AM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 03:05 AM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 05:00 AM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 05:25 AM
RE: Raylib Wrapper Help - by TempodiBasic - 08-30-2022, 05:07 AM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 05:37 AM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 05:49 AM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 12:07 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 12:12 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 12:45 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 04:49 PM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 06:38 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 06:49 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 07:21 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 07:43 PM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 08:55 PM



Users browsing this thread: 8 Guest(s)