Well, OK. Thank you.
Unfortunately I can't read C code, but your link is very helpful.
The helloworld demo does not show any graphical output, only printed coordinates, so I guess my first step will be to modify that demo to understand how it works.
I am not an experimented programmer, but if I ...
Search found 13 matches
- Mon Mar 28, 2016 2:26 pm
- Forum: Game Programming
- Topic: Interface to Chipmunk 7.0.1 [2D physics engine]
- Replies: 25
- Views: 25698
- Sun Mar 27, 2016 10:33 am
- Forum: Game Programming
- Topic: Interface to Chipmunk 7.0.1 [2D physics engine]
- Replies: 25
- Views: 25698
Re: Interface to Chipmunk 7.0.1 [2D physics engine]
Hi,
I am interested in using 2D physics, I downloaded your chipmunk library. But then where should I begin? Is there any tuto? Or at least an example with a little game? What is the list of the new commands and how do they work? Thank you.
I am interested in using 2D physics, I downloaded your chipmunk library. But then where should I begin? Is there any tuto? Or at least an example with a little game? What is the list of the new commands and how do they work? Thank you.
- Thu Oct 01, 2009 3:49 pm
- Forum: Coding Questions
- Topic: Image/Icon in a ComboBoxGadget()
- Replies: 19
- Views: 5856
Re: Image/Icon in a ComboBoxGadget()
Excellent!
I have a last question. It seems that you open and close a dll each time the function AlphaRender is called, doesn't it slow the program? I mean, wouldn't it be better to open the dll at the begin of the program and close it at the end?
I have a last question. It seems that you open and close a dll each time the function AlphaRender is called, doesn't it slow the program? I mean, wouldn't it be better to open the dll at the begin of the program and close it at the end?
- Wed Sep 30, 2009 3:23 pm
- Forum: Coding Questions
- Topic: Image/Icon in a ComboBoxGadget()
- Replies: 19
- Views: 5856
Re: Image/Icon in a ComboBoxGadget()
Thank you all, it finally works !
I have a last request however. My image contains an alpha chanel, so I'd like that these pixels were not displayed. Any idea?
I tried to change the constant #SCRCOPY to something else but it does not seem to work.
I have a last request however. My image contains an alpha chanel, so I'd like that these pixels were not displayed. Any idea?
I tried to change the constant #SCRCOPY to something else but it does not seem to work.
- Wed Sep 30, 2009 3:05 pm
- Forum: Coding Questions
- Topic: Image/Icon in a ComboBoxGadget()
- Replies: 19
- Views: 5856
Re: Image/Icon in a ComboBoxGadget()
I tried this :
But I only got a black rectangle, again I need some help.
Code: Select all
BitBlt_(\hdc,4,\rcitem\top+1,16,16,ImageID(#MyImage),0,0,0)
- Wed Sep 30, 2009 10:17 am
- Forum: Coding Questions
- Topic: Image/Icon in a ComboBoxGadget()
- Replies: 19
- Views: 5856
Re: Image/Icon in a ComboBoxGadget()
Yes, I try to load a TGA file 16*16 pixels. Is it possible to adapt the code? Or is it possible to convert the image into icon?
- Wed Sep 30, 2009 8:12 am
- Forum: Coding Questions
- Topic: Image/Icon in a ComboBoxGadget()
- Replies: 19
- Views: 5856
Re: Image/Icon in a ComboBoxGadget()
This works well, but I have problems loading my own images (with the LoadImage() PB function).
This code does not work :
This code does not work :
Code: Select all
DrawIconEx_(\hdc,4,\rcitem\top+1,ImageID(#MyImage),16,16,0,0,#DI_NORMAL|#DI_COMPAT)
- Tue Sep 29, 2009 6:38 pm
- Forum: Coding Questions
- Topic: Image/Icon in a ComboBoxGadget()
- Replies: 19
- Views: 5856
Re: Image/Icon in a ComboBoxGadget()
Mmm...
If I understand well, the windows handle is the same thing than the PB GadgetID() function.
But then, if I want to detect an event with the WaitWindowEvent() function, I need the constant.
So, how can I detect the event if I don't have any associated constant?
If I understand well, the windows handle is the same thing than the PB GadgetID() function.
But then, if I want to detect an event with the WaitWindowEvent() function, I need the constant.
So, how can I detect the event if I don't have any associated constant?
- Tue Sep 29, 2009 1:39 pm
- Forum: Coding Questions
- Topic: Image/Icon in a ComboBoxGadget()
- Replies: 19
- Views: 5856
Re: Image/Icon in a ComboBoxGadget()
Yes it helps a lot.
Could it be possible to adapt this function so that the handle (hCombo) is a predetermined constant?
hCombo = CreateWindowEx_(0, "ComboBoxEx32", "", #WS_BORDER | #WS_CHILD | #WS_VISIBLE | #CBS_DROPDOWN, 10, 10, 200, 200, WindowID(), 0, GetModuleHandle_(0), 0 )
Could it be possible to adapt this function so that the handle (hCombo) is a predetermined constant?
hCombo = CreateWindowEx_(0, "ComboBoxEx32", "", #WS_BORDER | #WS_CHILD | #WS_VISIBLE | #CBS_DROPDOWN, 10, 10, 200, 200, WindowID(), 0, GetModuleHandle_(0), 0 )
- Tue Sep 29, 2009 8:58 am
- Forum: Coding Questions
- Topic: Image/Icon in a ComboBoxGadget()
- Replies: 19
- Views: 5856
Image/Icon in a ComboBoxGadget()
Hello,
As you surely know AddGadgetItem() does not support the ImageID parameter for ComboBoxGadget().
So how can I add an image or an icon on the left of each item in a ComboBox? Do I have to use an API function? Which one? Is there a simple way to do that?
As you surely know AddGadgetItem() does not support the ImageID parameter for ComboBoxGadget().
So how can I add an image or an icon on the left of each item in a ComboBox? Do I have to use an API function? Which one? Is there a simple way to do that?
- Wed May 21, 2008 3:50 pm
- Forum: Coding Questions
- Topic: Need some help for a 3D map editor
- Replies: 4
- Views: 1358
- Tue May 20, 2008 11:56 pm
- Forum: Coding Questions
- Topic: Need some help for a 3D map editor
- Replies: 4
- Views: 1358
After I cut away all your external program files nonsense the sprite displays the block of North America, Cuba and the North East part of South America... The mountains are bumped... on a green screen background. I can control the scale of the psrite with the mouse wheel to a certain extent. I can ...
- Tue May 20, 2008 11:29 am
- Forum: Coding Questions
- Topic: Need some help for a 3D map editor
- Replies: 4
- Views: 1358
Need some help for a 3D map editor
Good day every body. Please, excuse my writing english, I'm french.
I've already made some code, but I'm blocked right now.
The principle of my program is :
1) Opening a picture in which grey pixels indicate height ;
2) Creating tables of vertices and triangles for the mesh.
My program works fine ...
I've already made some code, but I'm blocked right now.
The principle of my program is :
1) Opening a picture in which grey pixels indicate height ;
2) Creating tables of vertices and triangles for the mesh.
My program works fine ...