Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Schranz0r

#1
Hey,

this is a small example on how to create sounds with OpenAL.
Found this example here:
https://stackoverflow.com/questions/44157238/can-i-produce-a-synthetic-sound-using-openal

Maybe you need the headerfiles and install it (extract in GLBasic_SDK-Folder and you are good to go):
http://www.glbasic.com/files/headers.rar
#2
Hey guys,

i'm working on a imGUI implementation for GLBasic!
It works, and with some tweeking it can be multiplatform as well.
You can use the normal GLB-Stuff and put the GUI on top of it.

Code for this Demo example:
Code (glbasic) Select

GUI_INIT()

WHILE TRUE

    PRINT "Hello World!", 10, 10

    GUI_NewFrame()
    GUI_ShowDemoWindow()
    GUI_Render()

SHOWSCREEN
WEND

GUI_DestroyContext()
GUI_Shutdown()

END


This DEMO is part of imGUI. From now on u can use the c/c++ part right away.
The other things need to wrapped into GLB.

Linkeroptions:
Projects->Options->Add to the Ink-Field: -L"imgui"

Attached a screen and the project to test :)

IMPORTANT:
You have to install the Headerfiles for GLBasic! http://www.glbasic.com/files/headers.rar
Use the ESC-Key to exit the program, if you close with the X it can stay in the background... have to sort this bug out :/
#3
Small update on windows.h include:

Copy&Paste this into a new file:
(make sure you have the headerfiles installed!)
Code (glbasic) Select

INLINE

}
#define HINSTANCE W32HINSTANCE
#define HINSTANCE__ W32HINSTANCE__
#define HMODULE W32HMODULE
#undef LPSTR
#undef DECLARE_HANDLE
#undef LPCTSTR
#undef DWORD
#undef LPWSTR
#undef LPCWSTR
#define HWND W32HWND
#define HWND__ W32HWND__
#define HANDLE W32HANDLE
#undef MAX_PATH
#undef TCHAR
#define WIN32_LEAN_AND_MEAN
#define WinMain WinMain2
#include <windows.h>
namespace __GLBASIC__ {

ENDINLINE


*fixed:
Code (glbasic) Select
error: conflicting declaration 'typedef struct W32HINSTANCE__* HMODULE'
   typedef HINSTANCE HMODULE;

with:
Code (glbasic) Select
#define HMODULE W32HMODULE
#6
Hi Folks,

Box2D released 2.4.0 two weeks ago!
Here a short video from Gamefromscratch:



Licence is now under the MIT!
#7
HUHU,

i start a new Project, and it works nice so far! :)


GITHUB

This (https://github.com/SliverLIVE/Raylib-for-GLBasic) is a wrapper from this: https://www.raylib.com
Instructions on Github. Feel free to help on this!
I also need maybe a better way to handle the Structs (Font, Image, Texture, Vector4, Vector3...) in GLBasic...
Any suggestions are welcome :)
#8
Hi,

simple to reproduce:

test.h:
Code (glbasic) Select

int addStuff(int x, int y);
}


test.cpp:
Code (glbasic) Select
#inlude "test.h"

int addStuff(int x, int y) {
return x + y;
}



glbasic:
Code (glbasic) Select
INLINE
}
#include "test.h"

namespace __GLBASIC__{
ENDINLINE

FUNCTION TEST_addStuff: x, y
INLINE
return addStuff(x, y);
ENDINLINE
ENDFUNCTION



Result:
undefined reference to `addStuff(int, int)'

cpp-files seems to be ignored!

Is this new or i be stupid right now?!
#9
Hi my friends,

here is the start of a GLFW 3.3.2 Wrapper for GLBasic, maybe someone need it?!

!!!: Make sure to set the Path right in PROJECTS -> OPTIONS -> INK:
Code (glbasic) Select
-L "PATH_TO_\lib-mingw" -lglfw3 -lgdi32 -lopengl32

Example:
Code (glbasic) Select
-L "F:\Programmierung\GLBasic\GLFW_Bindings\lib-mingw" -lglfw3 -lgdi32 -lopengl32


Example Code in GLBasic:

Code (glbasic) Select
glfwInit()


LOCAL win = glfwCreateWindow(800,600,"MyWindow!")

glfwMakeContextCurrent(win)



WHILE NOT glfwWindowShouldClose(win)



glfwSwapBuffers(win)
glfwPollEvents()
WEND

glfwTerminate()
END


Happy coding :)
#10
Hi coders!

i try to access SDL-Functions in GLB. Did anyone did it before?
Have no luck on that one...


[EDIT2]:

OK got it!
Had no luck with the GCC Version of SDL so i change it with the VC-Version.
Linking the Libs and using the Headerfiles are fine now! :)


#11
Hi Gernot,

any possibility to fix this Output:

Code (glbasic) Select
precompiling:
precompiling:
GPC - GLBasic Precompiler V.15.394 SN:64771b8d - 3D, NET
Wordcount:6 commands
compiling:

linking:
C:/Program Files (x86)/Steam/steamapps/common/GLBasic_SDK/Compiler/platform/Win32/bin/ld.exe: .rsrc merge failure: duplicate leaf: type: 10 (VERSION) name: 1 lang: 409
success
 

I'm on the Steamversion...
Compiling is fine, but this output is a bit off...
#12
GLBasic - de / Compile Zeit
2019-Aug-10
Hallo zusammen,

ist es nur bei mir so, dass das Compilieren ewig dauert auch bei kleinen Programmen?
Ich bin auf der Steam-Version unterwegs...
Ein Programm wie:

Code (glbasic) Select
TYPE Blub
Bla% = 10
FUNCTION Blabla:
RETURN self.Bla
ENDFUNCTION
ENDTYPE


LOCAL b AS Blub


WHILE TRUE


PRINT b.Bla, 20, 20


SHOWSCREEN
WEND
END


braucht 12 - 14 Sek...
Das ging mal alles um einiges schnell oder nicht?
#13
Now it's time for the next step of GLBasic!

GLBasic v16 hit the Steam-Market right now.
And thats not all:

Gernot decided to give the lowered price (from ~70€ to ~42€) a -50% discount!
You can get the Steamversion for 20.99€ right now (till 14th of January)

Steamlink: https://steamcommunity.com/app/819510/




#14
Hi, WinCE is broken?

This is the compile-Output:

Code (glbasic) Select
*** Configuration: WINCE ***
precompiling:
GPC - GLBasic Precompiler V.14.721 SN:fb943093 - 3D, NET
Wordcount:4 commands
compile+link:
/cygdrive/Q/Compiler/platform/WinCE/Lib/libGLBasicWinCE.a(OpenGLRainbows.o)(.text+0x4334):OpenGLRainbows.cpp: undefined reference to `sinf'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libGLBasicWinCE.a(OpenGLRainbows.o)(.text+0x4340):OpenGLRainbows.cpp: undefined reference to `cosf'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libGLBasicWinCE.a(Rainbows3D.o)(.text+0x4a58):Rainbows3D.cpp: undefined reference to `tanf'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libGLBasicWinCE.a(Rainbows3D.o)(.text+0x7214):Rainbows3D.cpp: undefined reference to `tanf'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libGLBasicWinCE.a(Rainbows3D.o)(.text+0x7644):Rainbows3D.cpp: undefined reference to `cosf'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libGLBasicWinCE.a(3DMath.o)(.text+0x520):3DMath.cpp: undefined reference to `acosf'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libCxImageWinCE.a(pngread.o)(.text+0x324):pngread.c: undefined reference to `ExitProcess'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libCxImageWinCE.a(pngerror.o)(.text+0x38):pngerror.c: undefined reference to `ExitProcess'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libCxImageWinCE.a(pngerror.o)(.text+0x108):pngerror.c: undefined reference to `ExitProcess'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libCxImageWinCE.a(pngwrite.o)(.text+0xa74):pngwrite.c: undefined reference to `ExitProcess'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libCxImageWinCE.a(pngset.o)(.text+0x68):pngset.c: undefined reference to `lstrlenA'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libCxImageWinCE.a(pngset.o)(.text+0xc4):pngset.c: undefined reference to `lstrlenA'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libCxImageWinCE.a(pngset.o)(.text+0x164):pngset.c: undefined reference to `lstrlenA'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libCxImageWinCE.a(pngset.o)(.text+0x540):pngset.c: undefined reference to `lstrlenA'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libCxImageWinCE.a(pngset.o)(.text+0x71c):pngset.c: undefined reference to `lstrlenA'
/cygdrive/Q/Compiler/platform/WinCE/Lib/libCxImageWinCE.a(pngset.o)(.text+0x8d8):pngset.c: more undefined references to `lstrlenA' follow
*** FATAL ERROR - Bitte die Compiler-Ausgabe ins Forum kopieren
_______________________________________
*** Fertig ***
Dauer: 3.7 sek. Zeit: 11:32
Erstellen: 0 erfolgreich.
*** 1 FEHLGESCHLAGEN ***
#15
Hi there,

did anyone tried to run GLB with Visual Studio Code ?
#17
Hi guys,

anyone have a clue how to get the access-token from the TwitchAPI v5?
This is the link: https://dev.twitch.tv/docs/v5/guides/authentication/

I have all things together to sent my stuff to Twitch, but HOW? :D

NETWEBGET is not working for me...
I don't know,is it possible with Sockets?

For the case i/we can send it to twitchAPI, we need the returned URL with the access-token in it.  :puke:

Connection to the TwitchIRC was easy, but this...
#18
Bug Reports / Color themes
2016-Dec-09
Hi,

i guess the color themes in GLBasic are broken?!
If i create a new one and go to the Regedit and export it, then go to GLBasic and change it then close it.
Load the colors back into the Regedit and then start GLB nothing happens...
I wanna save that color theme  :'( :'(
#20
What you guys think about it?
Is it a good way to get more Power ( FPS ) and nicer Shadersupport to make the game more fancy?!

http://www.minecraftforum.net/news/59892-shaders-coming-in-1-9