Thank you, I overlooked that piece of information!
So... since Engine3D is OpenGL only and PlayMovie() needs a WindowID (or ScreenID)... that means you can't play movies anymore when using Engine3D? That would be quite dissapointing...
Search found 55 matches
- Sat Jun 03, 2023 9:18 pm
- Forum: Coding Questions
- Topic: [PB6.02] ScreenID() allways null
- Replies: 2
- Views: 652
- Fri Jun 02, 2023 6:53 am
- Forum: Coding Questions
- Topic: [PB6.02] ScreenID() allways null
- Replies: 2
- Views: 652
[PB6.02] ScreenID() allways null
PureBasic 6.02 LTS on Windows 11
With OpenGL (default subsystem) ScreenID() always returns null .
But ScreenID() works fine with subsystems DirectX9 and DirectX11 .
( x64 and x86; ASM and C backend )
;
; ------------------------------------------------------------
;
; PureBasic - Sprite example ...
With OpenGL (default subsystem) ScreenID() always returns null .
But ScreenID() works fine with subsystems DirectX9 and DirectX11 .
( x64 and x86; ASM and C backend )
;
; ------------------------------------------------------------
;
; PureBasic - Sprite example ...
- Tue May 30, 2023 12:05 pm
- Forum: Coding Questions
- Topic: Checking if linked list exists
- Replies: 18
- Views: 3043
Re: Checking if linked list exists
I posted a workaround for C and ASM backend (x64 and x86) on another thread:
viewtopic.php?p=602012#p602012
viewtopic.php?p=602012#p602012
- Tue May 30, 2023 12:00 pm
- Forum: Feature Requests and Wishlists
- Topic: IsArray(), IsList() and IsMap()
- Replies: 5
- Views: 1449
Re: IsArray(), IsList() and IsMap()
My workaround for linked lists and maps. Works with ASM and C backend on x64 and on x86: EnableExplicit
CompilerIf #PB_Compiler_Processor <> #PB_Processor_x64 And
#PB_Compiler_Processor <> #PB_Processor_x86
CompilerWarning "Only tested on x64 and x86. Maybe NOT working correctly"
CompilerEndIf ...
CompilerIf #PB_Compiler_Processor <> #PB_Processor_x64 And
#PB_Compiler_Processor <> #PB_Processor_x86
CompilerWarning "Only tested on x64 and x86. Maybe NOT working correctly"
CompilerEndIf ...
- Fri Nov 04, 2022 8:50 pm
- Forum: Feature Requests and Wishlists
- Topic: Debug should always output Quads
- Replies: 0
- Views: 748
Debug should always output Quads
In my humble opinion it would be better, if the "Debug" keyword would always output quad values.
The reason is, that when using "Debug" to do a quick check, you sometimes get wrong values on overflow condition.
l.l = 1
q.q = 1
a.q = 1 << 63
b.q = l << 63
c.q = q << 63
Debug a ; output always ...
The reason is, that when using "Debug" to do a quick check, you sometimes get wrong values on overflow condition.
l.l = 1
q.q = 1
a.q = 1 << 63
b.q = l << 63
c.q = q << 63
Debug a ; output always ...
- Tue Feb 23, 2021 7:44 pm
- Forum: Feature Requests and Wishlists
- Topic: [ToDo ?] SetMenuItemImage
- Replies: 6
- Views: 4367
Re: [ToDo ?] SetMenuItemImage
Hi there,
I would also prefer a proper "SetMenuItemImage()", but the following code shows how to at least get the the job done without destroying and recreating the whole menu:
CreateImage(0, 16, 16, 32, #PB_Image_Transparent)
CreateImage(1, 16, 16, 32)
StartDrawing(ImageOutput(1))
For y = 0 To ...
I would also prefer a proper "SetMenuItemImage()", but the following code shows how to at least get the the job done without destroying and recreating the whole menu:
CreateImage(0, 16, 16, 32, #PB_Image_Transparent)
CreateImage(1, 16, 16, 32)
StartDrawing(ImageOutput(1))
For y = 0 To ...
- Sat Feb 20, 2021 5:04 pm
- Forum: Bugs - Windows
- Topic: PB5.73 LTS #PB_Editor_ProductVersion: wrong value
- Replies: 1
- Views: 1427
PB5.73 LTS #PB_Editor_ProductVersion: wrong value
I think, #PB_Editor_ProductVersion is sometimes interpreted as a float value and sometimes as a string...
; Steps to reproduce:
; ---------------------------
;
; 1. open IDE menu "Compiler > Compiler Options..."
;
; 2. Go to tab "Version Info"
;
; 3. activate checkbox "Include Version Information ...
; Steps to reproduce:
; ---------------------------
;
; 1. open IDE menu "Compiler > Compiler Options..."
;
; 2. Go to tab "Version Info"
;
; 3. activate checkbox "Include Version Information ...
- Fri Jun 21, 2019 9:35 am
- Forum: Bugs - IDE
- Topic: [PB5.71b1] Structure Viewers "insert" -> wrong output
- Replies: 0
- Views: 1594
[PB5.71b1] Structure Viewers "insert" -> wrong output
When using the "insert" feature of the IDEs' Structure Viewer, then "StuctureUnion" and "EndStuctureUnion" gets (kind of...) misinterpreted as a structure field, but gets inserted as a "nameless" field.
Although this is a very clear description (feel the sarcasm :wink:), here is how to reprocude it ...
Although this is a very clear description (feel the sarcasm :wink:), here is how to reprocude it ...
- Mon May 06, 2019 7:01 am
- Forum: Feature Requests and Wishlists
- Topic: #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight
- Replies: 2
- Views: 1973
Re: #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight
Thanks Bisonte! Yes, that is a viable way! I completely forgot these two functions!
But IMHO it still would be nice to have #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight so you can get the information without Start/StopDrawing(CanvasOutput()).
(Hmmm... Why don't I get an email on replies ...
But IMHO it still would be nice to have #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight so you can get the information without Start/StopDrawing(CanvasOutput()).
(Hmmm... Why don't I get an email on replies ...
- Sat Oct 06, 2018 12:22 am
- Forum: Feature Requests and Wishlists
- Topic: #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight
- Replies: 2
- Views: 1973
#PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight
At the Moment it is hard to determine the inner size of a CanvasGadget when it was created with #PB_Canvas_Border flag.
So it would be nice to have #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight for GetGadgetAttribute() (as an equivalent to #PB_ScrollArea_InnerWidth and #PB_ScrollArea_InnerHeight ...
So it would be nice to have #PB_Canvas_InnerWidth and #PB_Canvas_InnerHeight for GetGadgetAttribute() (as an equivalent to #PB_ScrollArea_InnerWidth and #PB_ScrollArea_InnerHeight ...
- Sat Dec 09, 2017 11:34 pm
- Forum: Bugs - IDE
- Topic: PB5.61: Wrong Alt-Shortcuts in German IDE menu
- Replies: 0
- Views: 1272
PB5.61: Wrong Alt-Shortcuts in German IDE menu
PureBasic 5.61 x86/x64 on Windows 7 x64
When navigating through the IDE menu using Alt-shortcuts you're getting wrong menu items called (at least in one case, see example), if IDE language is set to German.
Example (IDE set to German):
Press " Alt+D " to open " D atei " menu. --> menu opens ...
When navigating through the IDE menu using Alt-shortcuts you're getting wrong menu items called (at least in one case, see example), if IDE language is set to German.
Example (IDE set to German):
Press " Alt+D " to open " D atei " menu. --> menu opens ...
- Mon Mar 07, 2016 2:05 am
- Forum: Coding Questions
- Topic: unexpected module scope logic
- Replies: 4
- Views: 1543
Re: unexpected module scope logic
Debug NO_redirect::Cos(#PI)
The above does not work [...]
Even this does not work:
Debug NO_redirect::Cos(NO_redirect::#PI) Well... this finally breaks the (odd) logic again... :lol:
EDIT: Removed mistakable joking.
By the way, introducing a "mindwind" module doesn't work either (mind the ...
The above does not work [...]
Even this does not work:
Debug NO_redirect::Cos(NO_redirect::#PI) Well... this finally breaks the (odd) logic again... :lol:
EDIT: Removed mistakable joking.
By the way, introducing a "mindwind" module doesn't work either (mind the ...
- Sun Mar 06, 2016 11:26 pm
- Forum: Coding Questions
- Topic: unexpected module scope logic
- Replies: 4
- Views: 1543
unexpected module scope logic
Hi there,
is the following code really meant to be working? It's logic seems consistent to me, but I really expected some complaint from the compiler! :shock:
(could be a nice "workaround-'til-bugfix" trick)
DeclareModule redirect
Macro Str( Value )
Hex( Value )
EndMacro
EndDeclareModule ...
is the following code really meant to be working? It's logic seems consistent to me, but I really expected some complaint from the compiler! :shock:
(could be a nice "workaround-'til-bugfix" trick)
DeclareModule redirect
Macro Str( Value )
Hex( Value )
EndMacro
EndDeclareModule ...
- Sun Mar 06, 2016 8:55 pm
- Forum: Feature Requests and Wishlists
- Topic: Swap for Lists, Arrays and Maps
- Replies: 1
- Views: 1629
Re: Swap for Lists, Arrays and Maps
Unfortunately it isn't possible anymore to swap whole arrays using the keyword Swap (PB 5.42).
I really would appreciate if this feature would be reintroduced with the addition to swap lists and maps.
I really would appreciate if this feature would be reintroduced with the addition to swap lists and maps.
Code: Select all
; Once uppon a time, this codes was working... :´(
Dim a(0)
Dim b(0)
Swap a(), b()
- Sun Jan 31, 2016 11:44 pm
- Forum: Coding Questions
- Topic: PB5.42b1 ":" in Enumerations (tiny bug)
- Replies: 3
- Views: 1138
Re: PB5.42b1 ":" in Enumerations (tiny bug)
I know, that this is located somewhere on the borderline between bug and feature request.
I posted this in the bug section because it is actually correct PureBasic syntax, although it's usage and the need for it may be a topic for a discussion. ;)
So Demivec, I mostly agree with your posting. The ...
I posted this in the bug section because it is actually correct PureBasic syntax, although it's usage and the need for it may be a topic for a discussion. ;)
So Demivec, I mostly agree with your posting. The ...