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.


Topics - Schranz0r

Pages: [1] 2 3 ... 14
1
Inline / 3rd party / Create sound with OpenAL
« on: 2021-Sep-22 »
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
Inline / 3rd party / imGUI for GLBasic
« on: 2021-Feb-14 »
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
Inline / 3rd party / Include windows.h
« on: 2021-Feb-14 »
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

5
3D-snippets / MOVED: SGEngine
« on: 2020-Nov-11 »

6
GLBasic - en / Box2D released 2.4.0
« on: 2020-Aug-10 »
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
Inline / 3rd party / GLFW 3.3.2 wrapper start
« on: 2020-May-02 »
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
GLBasic - en / SDL2 access inline?!
« on: 2020-Apr-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
« on: 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
Bug Reports / WinCE compile errors!
« on: 2017-Dec-31 »
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
GLBasic - en / Visual Studio Code possible?
« on: 2017-Dec-30 »
Hi there,

did anyone tried to run GLB with Visual Studio Code ?

Pages: [1] 2 3 ... 14