Search found 1615 matches
- Mar 06, 2013 11:13
- Forum: Sources, Examples, Tips and Tricks
- Topic: TEXT BOX EDITOR
- Replies: 1
- Views: 1183
Re: TEXT BOX EDITOR
brilliant. kind of a mind ripper actually
Re: Squares
Know how ya feel, except you're like 10 times smarter than mostRichard wrote:I drew diagrams of the data organisation on a big whiteboard, yet I still got confused, and I still do.
Re: Squares
@Stonemonkey - correction for draw_gfx_buffer()
Code: Select all
dim as uinteger ptr p_start=dst->pixels+x_start*4 ..
dim as uinteger ptr source=src->pixels+(x_start-dst_x)*4 ..
- Feb 22, 2013 16:20
- Forum: Sources, Examples, Tips and Tricks
- Topic: Debugging using a widget instead of PRINT statements
- Replies: 6
- Views: 1500
Re: Debugging using a widget instead of PRINT statements
Win 7 64 fbc 0.24 .. First I tried running, it said freetype6 missing.
So I got that and ran it and from there it crashes.
Now I moved everything to fbc dir, enter command prompt and type
fbc widg.bas
widg.exe
it still crashes :\
So I got that and ran it and from there it crashes.
Now I moved everything to fbc dir, enter command prompt and type
fbc widg.bas
widg.exe
it still crashes :\
- Feb 19, 2013 12:06
- Forum: Sources, Examples, Tips and Tricks
- Topic: Debugging using a widget instead of PRINT statements
- Replies: 6
- Views: 1500
Re: Debugging using a widget instead of PRINT statements
@AGS - crashes at IupControlsOpen
- Feb 18, 2013 3:31
- Forum: Sources, Examples, Tips and Tricks
- Topic: tex warp
- Replies: 5
- Views: 1528
Re: tex warp
it occurred to me you are a procedural artist. it is great to be joining the ranks. the chill is hanging on, but I try to keep in mind that winters used to be like this. only in recent years have 20's been poking around in Feb
Re: Squares
@Richard - numerator/denominator pairs, golden. Thanks @Albert - stuff like this will speed up your drawings Dim As Single tanlogdeg2span=tan(Log(deg2*span)) x1=radius*c1*cos(c1+span)*atn(acos(tanlogdeg2span)) y1=radius*s1*sin(s1+span)*atn(asin(tanlogdeg2span)) x2=radius*c2*cos(c2+span)*atn(cos(tanl...
- Feb 16, 2013 10:19
- Forum: Sources, Examples, Tips and Tricks
- Topic: tex warp
- Replies: 5
- Views: 1528
tex warp
framework for creating and warping textures. [updates - July 24] - aa pixel calc adjustments "texwarp.bi" ' ------------ Start of TexWarp.bi ------------ ' #Ifndef UnionARGB ' #Include "tImage.bi" ' --------- Start of tImage.bi ---------- ' #Include Once "fbgfx.bi" #Ifn...
Re: Squares
dodicat, thanks for the inspiration. I made a new gradient thing #Ifndef set_fpu_rounding_mode '' http://www.freebasic.net/forum/viewtopic.php?f=3&t=20669#p181983 Function get_fpu_control_word()as integer asm fstcw [function] end function Sub set_fpu_control_word(byval cw as integer) asm fldcw [...
- Feb 06, 2013 21:22
- Forum: General
- Topic: image handle of screen (solved)
- Replies: 8
- Views: 529
Re: image handle of screen (solved)
The extra lines of code are precisely what I'm trying to avoid :)
I tried to write my own ScreenRes image pointer with the knowledge that offscreen buffers (first pixel) - (image ptr) = 32, but it messes up. I'm sticking with ptr=0 until I find some case where it doesn't work
I tried to write my own ScreenRes image pointer with the knowledge that offscreen buffers (first pixel) - (image ptr) = 32, but it messes up. I'm sticking with ptr=0 until I find some case where it doesn't work
- Feb 06, 2013 2:03
- Forum: General
- Topic: image handle of screen (solved)
- Replies: 8
- Views: 529
Re: image handle of screen (solved)
Thanks. That's lovely. Anyway I answered my own question, the last choice I looked. And, I meant ScreenRes. Anyway the answer is to simply have img=0
- Feb 05, 2013 18:39
- Forum: General
- Topic: image handle of screen (solved)
- Replies: 8
- Views: 529
image handle of screen (solved)
so that this will work for ScreenSet ..
Code: Select all
Line img,(x,y)- ..
- Jan 30, 2013 23:26
- Forum: Sources, Examples, Tips and Tricks
- Topic: 2d rotation demystified
- Replies: 8
- Views: 1754
2d rotation demystified
My attempt to clarify this equation cos(a)*x - sin(a)*y cos(a)*y + sin(a)*x Dim As Integer NumRepeat = 0 Dim As Single time_scale = 1.0 Dim As Integer sit_back_and_watch = 0 If sit_back_and_watch Then NumRepeat = 20 time_scale = 0.1 End If ' ==================================== Dim As Single x = 180...
Re: Squares
I speededed it up. You can get more speed by precalculating your color. '1. rewrote ppset to not require CInt (which is slow) '2. my combsort Type vector3d As Single x,y,z #define vct Type<vector3d> End Type Operator -(v1 As vector3d,v2 As vector3d) As vector3d Return Type<vector3d>(v1.x-v2.x,v1.y-v...
Re: Squares
Three 90 degree vectors to represent an axis. Say you're looking at it straight on: axis vector3d x vec points to the right, and the y vec points up. A point associated with the axis will have its x multiplied by the axis xvec.x. If you imagine the point x sliding from 0 to 1, it will start at the a...