
Search found 21 matches
- Tue Nov 02, 2004 9:44 am
- Forum: General Discussion
- Topic: How can i use unsigned bytes ?
- Replies: 3
- Views: 1002
- Tue Nov 02, 2004 8:33 am
- Forum: General Discussion
- Topic: How can i use unsigned bytes ?
- Replies: 3
- Views: 1002
How can i use unsigned bytes ?
It is possible ?
I need them to store OpenGL color values..
so i have vertex
Structure mae_2dvertex
;GL_T2F_C4UB_V3F
uv.f[2]
color.b[4]
pos.f[3]
EndStructure
i cant use floats in this vertex type (GL_T2F_C4UB_V3F) and i dont want to use different type.
and i have troubles with colors ...
I need them to store OpenGL color values..
so i have vertex
Structure mae_2dvertex
;GL_T2F_C4UB_V3F
uv.f[2]
color.b[4]
pos.f[3]
EndStructure
i cant use floats in this vertex type (GL_T2F_C4UB_V3F) and i dont want to use different type.
and i have troubles with colors ...
- Sun Oct 24, 2004 7:27 pm
- Forum: General Discussion
- Topic: Floats as a return param in DLL
- Replies: 13
- Views: 2892
- Sun Oct 24, 2004 3:11 pm
- Forum: General Discussion
- Topic: Floats as a return param in DLL
- Replies: 13
- Views: 2892
- Sun Oct 24, 2004 1:52 pm
- Forum: General Discussion
- Topic: Floats as a return param in DLL
- Replies: 13
- Views: 2892
- Wed Oct 20, 2004 3:11 pm
- Forum: General Discussion
- Topic: Floats as a return param in DLL
- Replies: 13
- Views: 2892
- Wed Oct 20, 2004 5:28 am
- Forum: General Discussion
- Topic: Floats as a return param in DLL
- Replies: 13
- Views: 2892
- Tue Oct 19, 2004 12:21 pm
- Forum: General Discussion
- Topic: Floats as a return param in DLL
- Replies: 13
- Views: 2892
- Tue Oct 19, 2004 11:58 am
- Forum: General Discussion
- Topic: Floats as a return param in DLL
- Replies: 13
- Views: 2892
- Tue Oct 19, 2004 11:49 am
- Forum: General Discussion
- Topic: Floats as a return param in DLL
- Replies: 13
- Views: 2892
Floats as a return param in DLL
a have a DLL
#define API extern "C" __declspec(dllexport)
#define CALL _stdcall
API double CALL test_double() {
return 0.12345;
}
API float CALL test_float() {
return 0.12345f;
}
API int CALL test_int() {
return 12345;
}
i make DLL and convert it to PB lib
now im making test PB source ...
#define API extern "C" __declspec(dllexport)
#define CALL _stdcall
API double CALL test_double() {
return 0.12345;
}
API float CALL test_float() {
return 0.12345f;
}
API int CALL test_int() {
return 12345;
}
i make DLL and convert it to PB lib
now im making test PB source ...
- Fri Oct 15, 2004 1:14 pm
- Forum: Feature Requests and Wishlists
- Topic: [Implemented] Double floats for 3.92
- Replies: 11
- Views: 2844
Dunno...
Im making small 3d engine and have no problems...
here part of init function
And what extention whants double floats 
Im making small 3d engine and have no problems...
here part of init function
Code: Select all
glEnable_(#GL_DEPTH_TEST)
glDepthFunc_(#GL_LESS)
glClearDepth__( 1.0 ) ;no problems here !
glBlendFunc_(#GL_SRC_ALPHA, #GL_ONE_MINUS_SRC_ALPHA)

- Fri Oct 15, 2004 4:55 am
- Forum: Feature Requests and Wishlists
- Topic: [Implemented] Double floats for 3.92
- Replies: 11
- Views: 2844
- Thu Oct 14, 2004 1:14 pm
- Forum: Feature Requests and Wishlists
- Topic: OPTIMIZATION !
- Replies: 10
- Views: 2541
- Thu Oct 14, 2004 9:36 am
- Forum: Feature Requests and Wishlists
- Topic: OPTIMIZATION !
- Replies: 10
- Views: 2541
OPTIMIZATION !
I wish to see better assembler output....
I suppose that now ther is no optimization at all... only Line by line translation to asm.
Here PureBasic generated code
; *mae_selectedlinkedlist\count = *mae_selectedlinkedlist\count - 1
MOV ebp,dword [p_mae_selectedlinkedlist]
MOV ebx,dword [ebp+20 ...
I suppose that now ther is no optimization at all... only Line by line translation to asm.
Here PureBasic generated code
; *mae_selectedlinkedlist\count = *mae_selectedlinkedlist\count - 1
MOV ebp,dword [p_mae_selectedlinkedlist]
MOV ebx,dword [ebp+20 ...
- Sat Oct 09, 2004 9:01 am
- Forum: Tricks 'n' Tips
- Topic: Small trick with ASM
- Replies: 4
- Views: 2234