Search found 24 matches

by hippy
Mon Jan 06, 2020 2:06 am
Forum: Coding Questions
Topic: Setting a default value for argument type ".p-utf8"
Replies: 2
Views: 945

Re: Setting a default value for argument type ".p-utf8"

:( Thanks for the quick reply!
by hippy
Sun Jan 05, 2020 4:09 pm
Forum: Coding Questions
Topic: Setting a default value for argument type ".p-utf8"
Replies: 2
Views: 945

Setting a default value for argument type ".p-utf8"

Hi All,

Is it possible to set a default value in a prototype for an argument of type .p-utf8

Eg:

PrototypeC ___igShowFontSelector_pr(label.p-utf8) ; void igShowFontSelector(const char* label);

I'd like to do something like:

PrototypeC ___igShowFontSelector_pr(label.p-utf8="Default Value ...
by hippy
Tue Dec 18, 2018 12:34 pm
Forum: The PureBasic Editor
Topic: Code hints for prototypes declared in macros?
Replies: 0
Views: 2394

Code hints for prototypes declared in macros?

Hi All!

Hoping someone can guide me, how can I make code hints? Like where the IDE shows a hint in the status bar showing the arguments.

I make these prototypes in a macro that call dll functions, but there are many, many functions imported with many different declarations!



Macro _dq ...
by hippy
Sun Dec 16, 2018 6:17 am
Forum: Announcement
Topic: HID USB Relay
Replies: 1
Views: 7052

HID USB Relay

Bought a cheapo $5 USB Relay device from Ebay. It's a HID device, pretty straight forward.


"1 Channel 5V USB Relay Module USB Computer Control USB Relay Switch Board"

Description:
- The module uses HID technology, foreign trade quality, without any driver, download the data with its own ...
by hippy
Fri Mar 09, 2018 11:23 am
Forum: Coding Questions
Topic: Immediate Mode Graphical User interface
Replies: 6
Views: 4382

Re: Immediate Mode Graphical User interface

Hey,

I've started an interface to CImGui for PB. https://github.com/hippyau/pb-cimgui

Need some help to finish it off, so please contribute to improve it.

https://github.com/hippyau/pb-cimgui/raw/master/screenshot.png?

it's based on CImGui https://github.com/Extrawurst/cimgui

Which is a ...
by hippy
Fri Mar 09, 2018 11:19 am
Forum: Announcement
Topic: ImGui - Immeadite Mode GUI for PB
Replies: 4
Views: 4127

ImGui - Immeadite Mode GUI for PB

Hi all,

I've started an interface to CImGui for PB. https://github.com/hippyau/pb-cimgui

Need some help to finish it off, so please contribute to improve it.

https://github.com/hippyau/pb-cimgui/raw/master/screenshot1.png

it's based on CImGui https://github.com/Extrawurst/cimgui

Which is ...
by hippy
Thu May 04, 2017 5:50 am
Forum: Tricks 'n' Tips
Topic: dweet.io
Replies: 1
Views: 1896

dweet.io

dweet.io is a free online service that is like twitter for machines....

anyway, thought I'd share this...


;- dweet.pbi
;- A simple example of dweeting on dweet.io

; DWEET is free and ridiculously simple messaging (and alerts) platform for the Internet of Things.
; you can also use freeboard ...
by hippy
Tue Jan 19, 2016 10:22 am
Forum: Applications - Feedback and Discussion
Topic: MP3D Engine Alpha 33
Replies: 1056
Views: 537917

Re: MP3D Engine Alpha 32

applePi wrote:1) if we replace RGB by MP_ARGB in the MP_LineXY(1, k, k, k, RGB(k,0,k))
Thank you, it works as expected now :)

I actually do this inside the loop as I draw dynamically on the texture, and it's working now, thanks!

Cheers,
Hippy
by hippy
Tue Jan 19, 2016 2:57 am
Forum: Applications - Feedback and Discussion
Topic: MP3D Engine Alpha 33
Replies: 1056
Views: 537917

Re: MP3D Engine Alpha 32

Hi All,

Can someone explain to me what I am doing wrong here? It must be something stupid :oops:

I try to use MP_RenderToTexture() to draw some lines on a texture, but on Texture 1 it's behaving weird.

So, I use MP_RenderToTexture() on 4 textures, but texture 1 misbehaves:
http://maclachlan.net ...
by hippy
Sun Jan 10, 2016 1:31 pm
Forum: Applications - Feedback and Discussion
Topic: MP3D Engine Alpha 33
Replies: 1056
Views: 537917

Re: MP3D Engine Alpha 32

Hello All,

mpz this is awesome, thank you, the ThreadSafe latest versions seem to work great with PB 5.40 LTS.


I have a question though.... is there something similar to isSprite and isTexture?

I have a problem when the DX device is lost and restored, this code can crash unless Iknow if it still ...
by hippy
Sun Dec 20, 2015 4:25 am
Forum: Coding Questions
Topic: [5.40 LTS] DirectX11 Subsystem failing without explaination
Replies: 7
Views: 2188

Re: [5.40 LTS] DirectX11 Subsystem failing without explainat

Okay, so I just bought an Alienware 13 with a NVIDIA GeForce GTX 860M 2GB.

DirectX11 Subsystem still doesn't work and doesn't offer any clues as to why / what is required.

Any ideas?

Cheers,
Hip

DXDiag output:

------------------
System Information
------------------
Time of this report: 12 ...
by hippy
Thu Dec 10, 2015 10:47 am
Forum: Windows
Topic: [PB 5.40 LTS] Restore DirectX sprites after device lost
Replies: 3
Views: 2658

Re: [PB 5.40 LTS] Restore DirectX sprites after device lost

Hi Fred,

Thanks, but I cannot use the DirectX11 Subsystem - it does not work I believe my Intel HD onboard does not support it. Since my app must be used on a variety of hardware, DX9 seems to be a good option. OpenGL behaves very slowly for me also. I am only doing basic 2D stuff, no 3d, yet ...
by hippy
Wed Dec 09, 2015 3:33 pm
Forum: Coding Questions
Topic: DisplayRGBFilter() Replacement advice
Replies: 5
Views: 1448

[SOLVED] DisplayRGBFilter() Replacement advice

Thank you!


Brilliant, works perfectly!


Cheers,
Hip
by hippy
Wed Dec 09, 2015 3:04 pm
Forum: Windows
Topic: [PB 5.40 LTS] Restore DirectX sprites after device lost
Replies: 3
Views: 2658

[PB 5.40 LTS] Restore DirectX sprites after device lost

Hi All,

I am really struggling with this problem.

I do a lot of 2D drawing onto a windowed screen, if my windowed screen app is running and the PC sleeps, or the workstation locks, or the desktop changes (example, connect an external display) the windowed screen turns grey and eventually app ...
by hippy
Wed Dec 09, 2015 2:46 pm
Forum: Coding Questions
Topic: DisplayRGBFilter() Replacement advice
Replies: 5
Views: 1448

DisplayRGBFilter() Replacement advice

Hi All,

So i'm migrating a project from PB 4.60 to PB 5.40 LTS and i've found that DisplayRGBFilter() has been removed.
I read in the history...

Removed: DisplayRGBFilter() -> can be replaced with a zoomed sprite with color

I'm not really sure what this means, it there a way to replicate the ...