Search found 47 matches
- Nov 02, 2007 16:37
- Forum: Community Discussion
- Topic: QB Express #25
- Replies: 16
- Views: 7470
- Aug 11, 2007 14:52
- Forum: General
- Topic: ASM matrix multiplication
- Replies: 15
- Views: 3488
If you compile with the -r option you can look in the ASM file to determine which instruction is causing the problem. In this case the instruction is on line 83 of ASM file: Loop row_loop The problem is that the operand for the LOOP instruction must specify a short label. A short label is between -...
- Aug 11, 2007 3:42
- Forum: General
- Topic: ASM matrix multiplication
- Replies: 15
- Views: 3488
ASM matrix multiplication
I'm trying to convert this FB routine: ' RMI : converts 2d index to 1d index #Define rMI(r, c) (c - 1)*4 + (r - 1) Type rMatrix4 n(0 TO 15) as Single End Type ' overloaded operator Operator *( a As rmatrix4, b As rmatrix4 ) As RMATRIX4 Dim r As Byte, c As Byte Dim i As Byte, TEMP As Single Dim mOut ...
- Jul 08, 2007 1:34
- Forum: General
- Topic: Default BYVAL or BYREF Parameter Passing?
- Replies: 138
- Views: 39646
Hm, think I explained it badly. I know I can access the elements with THIS, so I don't need to pass them to the method; but I'm trying to send values to certain elements. Here's an abbreviated example from the article I attempted to link to above: Type bar Declare Constructor(Byval initial_val As In...
- Jul 07, 2007 20:13
- Forum: General
- Topic: Default BYVAL or BYREF Parameter Passing?
- Replies: 138
- Views: 39646
Thanks cha0s :) * An object is, more or less, just a type with methods (subs/functions) and properties [url=http://www.freebasic.net/wiki/wikka.php?wakka=TutBeginnersGuideToTypesAsObjects][more...]. I wish I'd remembered that we'd get OOP when I stated -- then this: DECLARE SUB shipLocateMe (BYREF s...
- Jun 23, 2007 19:29
- Forum: Libraries Questions
- Topic: Can't set up an XZ orthographic projection?
- Replies: 1
- Views: 1601
- Jun 23, 2007 18:26
- Forum: Libraries Questions
- Topic: Can't set up an XZ orthographic projection?
- Replies: 1
- Views: 1601
Can't set up an XZ orthographic projection?
I used this line, glOrtho (0, 640, -1, 1, 0, 480) to look at the XZ plane, so I should see a diagonal line across the screen when I call glBegin(GL_LINES) glColor3f 1, 1, 1 glVertex3f 0, 0, 0 glVertex3f 640, 0, 480 glEnd but I see nothing. To illustrate the problem, Here's some working code that dra...
- May 27, 2007 3:18
- Forum: General
- Topic: 3D rotation around the object's axes... (physics question)
- Replies: 5
- Views: 1571
Here's a better explanation of the problem. I think I was looking in the wrong place. I store the three orientation angles as a vector, simply because it is convienient to think of rotations around the x-y-z axes. I store rotational velocties the same way, so I can just use data straight from the jo...
- May 23, 2007 22:16
- Forum: General
- Topic: 3D rotation around the object's axes... (physics question)
- Replies: 5
- Views: 1571
3D rotation around the object's axes... (physics question)
I'm trying to write something in 3D and I've run across a problem. When I try to pitch or yaw, the model rotates around vectors parallel to the world's x and y axes instead of the model's x and y axes. Roll (z rotation) seems to be fine. Quaternions (as cool as they are) don't seem to help. When I'm...
- May 16, 2007 4:09
- Forum: Community Discussion
- Topic: About the FreeBASIC v0.17b release.
- Replies: 30
- Views: 18689
- Mar 17, 2007 16:18
- Forum: Beginners
- Topic: Pointer to a UDT, and accessing UDT elements [Solved]
- Replies: 5
- Views: 1624
- Mar 17, 2007 4:46
- Forum: Beginners
- Topic: Pointer to a UDT, and accessing UDT elements [Solved]
- Replies: 5
- Views: 1624
- Mar 17, 2007 4:40
- Forum: Beginners
- Topic: Pointer to a UDT, and accessing UDT elements [Solved]
- Replies: 5
- Views: 1624
Pointer to a UDT, and accessing UDT elements [Solved]
If I define a pointer to a user-defined-type, how can I access the elements of that type? Here's an example: OPTION EXPLICIT TYPE userdefinedtype value as short END TYPE DIM udtptr as userdefinedtype ptr, udt as userdefinedtype udt.value = 5 udtptr = @udt ' ******** PRINT something here SLEEP How co...
- Oct 28, 2006 21:47
- Forum: Beginners
- Topic: Can't figure out SCREENPTR?
- Replies: 3
- Views: 1466
- Oct 28, 2006 20:11
- Forum: DOS
- Topic: On a 16 bit system
- Replies: 9
- Views: 4463