Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
rect
- Page 1
Re: Win32-Passing RECT type by value results on weird numbers
Programming
Software Development
15 Years Ago
by Icebone1000
…*&pDevice_p, ID3D11DeviceContext *&pDIContext_p, IDXGISwapChain *&pSC_p,
RECT
wndrect_p, ID3D11RenderTargetView *&pRTV_p ); ... //Heres where I call…*&pDevice_p, ID3D11DeviceContext *&pDIContext_p, IDXGISwapChain *&pSC_p,
RECT
wndrect_p, ID3D11RenderTargetView *&pRTV_p ){ //at the first moment…
Re: Win32-Passing RECT type by value results on weird numbers
Programming
Software Development
15 Years Ago
by Icebone1000
… encountered such problem. Are you sure you are using the
RECT
right (ie . instead of ->)? And besides, why do you… variable value for the LONG x is ok, just the
RECT
watched values get weird....and..o.o just when pass…, the hexa values are also displayed all different for the
rect
...and just when passed by value...@.@
Win32-Passing RECT type by value results on weird numbers
Programming
Software Development
15 Years Ago
by Icebone1000
Hi, thats very weird..if I pass my
RECT
by reference notting wrong happens, bu if I pass by … it enters the function( NO MODIFICATIONS ARE MADE ON THE
RECT
).. Is this a 64 bit issue? Im on a x64…
click rect help
Programming
Software Development
14 Years Ago
by wolfeater017
how do you get it in pygame so that when you click on a
rect
it will reset the window but only when you click on that certain
rect
Line-rect collision detection
Programming
Software Development
12 Years Ago
by Chuckleluck
Hello, I'm fairly new to programming, and I'm not exactly sure how to do line-
rect
collision detection. If it helps, I'm using SFML 2. Can someone explain to me how I would go about coding line-
rect
collision detection? Thanks in advance.
Re: Win32-Passing RECT type by value results on weird numbers
Programming
Software Development
15 Years Ago
by strmstn
Yes that is weird, I have never encountered such problem. Are you sure you are using the
RECT
right (ie . instead of ->)? And besides, why do you want to pass it by value instead of reference?
How to get the current opened menu Rect (hwnd)
Programming
Software Development
17 Years Ago
by ashraf fawzy
Hi all.... I need to get the current opened menu
Rect
( Left - Top - Width - Height ) I tried to use GetActiveWindow , GetForegroundWindow …
Re: about DrawText(): how use new lines\tabs in vertical center of the rect?
Programming
Software Development
10 Years Ago
by cambalinho
…the string(with DT_CALRECT flag) rectangle:
RECT
rect
, textrect; GetClientRect(hwnd,&
rect
); DrawText(hdc,"hello world\nhi\…the top of hdc rectangle(
rect
):
rect
.top=
rect
.bottom/2-textrect.bottom/2;// remember the
rect
is, always, less than…\nhello my dog",-1, &
rect
, DT_CENTER | DT_EXPANDTABS); thanks for all
Re: about DrawText(): how use new lines\tabs in vertical center of the rect?
Programming
Software Development
11 Years Ago
by cambalinho
…case WM_PAINT: HDC hdc; SIZE TextRect;
RECT
rect
; GetClientRect(hwnd,&
rect
); PAINTSTRUCT a; hdc=BeginPaint(hwnd,&a…(hdc,"hello world\nhi",-1, &
rect
, DT_CENTER | DT_EXPANDTABS | DT_VCENTER); EndPaint(hwnd,&a…
Rect class
Programming
Software Development
14 Years Ago
by HASHMI007
[ICODE]/*write a program class Rectangle . the class will have two data member to coodinates of upper left & lower reght corner of rectangle. these two data member will be object of point class. 1-The rectangle class should following function. 2-A default destructor to print a messagewheneveran objectis distroyed 3-a get function for …
Re: Rect class
Programming
Software Development
14 Years Ago
by Ancient Dragon
What do you need help with? We can't help you if you can't tell us.
Re: Win32-Passing RECT type by value results on weird numbers
Programming
Software Development
15 Years Ago
by Ancient Dragon
>>Is this a 64 bit issue? Im on a x64 project.. Not if you are compiling with a 32-bit compiler. It's the compiler, not the os, that determines 32 or 64-bit programs. But I doubt that is the case. Post some code that demonstrates the problem.
Re: Win32-Passing RECT type by value results on weird numbers
Programming
Software Development
15 Years Ago
by Ancient Dragon
VC++ 2008 has some problems with viewing the values of variables, I think it gets confused sometimes.
Re: click rect help
Programming
Software Development
14 Years Ago
by jimothy
make it so that if the position of the mouse is equal to somewhere within the rectangle [B]AND[/B] if the mouse is clicked then do something-(relpy to me if you want actual code)
Re: click rect help
Programming
Software Development
14 Years Ago
by wolfeater017
actual code would be nice
Re: click rect help
Programming
Software Development
14 Years Ago
by TrustyTony
See the yesterdays post of vegaseat in the GUI thread.
Re: click rect help
Programming
Software Development
14 Years Ago
by wolfeater017
shouldn't I be able to do something like this [CODE]M = pygame.mouse.get_pos if M == textRect.collidepoint: print('I win')[/CODE]
Re: Line-rect collision detection
Programming
Software Development
12 Years Ago
by adityatandon
http://www.geometrictools.com/LibMathematics/Intersection/Intersection.html http://gamedev.stackexchange.com/questions/12106/line-rectangle-collision-detection-and-response http://forums.codeguru.com/showthread.php?t=478118
Re: Line-rect collision detection
Programming
Software Development
12 Years Ago
by Chuckleluck
Thanks :)
Re: Line-rect collision detection
Programming
Software Development
12 Years Ago
by adityatandon
Always Welcome :)
Code Working, Need a Way to Optimize it!
Programming
Software Development
13 Years Ago
by Catalyst.X
…0 Then Draw.DrawImage(image:=binoculars,
rect
:=
rect
) End If End If End If …0 Then Draw.DrawImage(image:=binoculars,
rect
:=
rect
) End If End If End If…
Re: Code Working, Need a Way to Optimize it!
Programming
Software Development
13 Years Ago
by Catalyst.X
… 0 Then Draw.DrawImage(image:=jackhammer,
rect
:=
rect
) End If If System.String.Compare(…0 Then Draw.DrawImage(image:=binoculars,
rect
:=
rect
) End If End If Next index…
using binascii
Programming
Software Development
16 Years Ago
by mruane
…
rect
[2]*100, self.
rect
[3]*100) self.collision_groups = [] def set_pos(self, x, y): self.r.left = x*100 self.r.top = y*100 def …self.
rect
.y, actor.
rect
.w, actor.
rect
.h) class Level: def __init__(self, level=level1): self.level = level self.x = 0 self.y = -16 for …
onclick?
Digital Media
UI / UX Design
15 Years Ago
by thejester1975
…;22.gif"/> <area shape="
rect
" coords="152,137,223,201" …23.gif"/> <area shape="
rect
" coords="228,137,299,201" …24.gif"/> <area shape="
rect
" coords="303,138,374,202" …54.gif" /> <area shape="
rect
" coords="304,342,373,405" href…
Help with a Pong game
Programming
Software Development
14 Years Ago
by redyugi
…-in bounds if self.
rect
.colliderect(disp.
rect
): self.
rect
.y = disp.
rect
.bottom elif self.
rect
.colliderect(bottomrect): self.
rect
.bottom = bottomrect.top…0)) icon.set_alpha(255) pygame.display.set_icon(icon) bottomrect = pygame.
rect
.
Rect
(0, size[1], size[0], 1) # Create/load background…
My game starts lagging more and more after each kill
Programming
Software Development
11 Years Ago
by Necrozze
…: if PlayerRect.left <=
rect
[0] +
rect
[2] and PlayerRect.left >=
rect
[0] and PlayerRect.y <
rect
[1] +
rect
[3] and PlayerRect.y…[2],roof[1]),1) for
rect
in rects: pygame.draw.
rect
(screen,(255,0,0),(
rect
[0],
rect
[1],
rect
[2],
rect
[3]),0) for i…
What about my Pong game?
Programming
Software Development
11 Years Ago
by João Victor
…self.
rect
= self.image.get_rect(x = self.
rect
.x, y = self.
rect
.y, top = self.
rect
.top, bottom = self.
rect
.bottom, left = self.
rect
.left…
Black Screen on Pygame until I close it!
Programming
Software Development
10 Years Ago
by Urbandude23
…white) draw_miner(screen,x_coord,y_coord) pygame.draw.
rect
(screen,green,[20,20,50,50],2) pygame.draw…) #breakafter8 pygame.draw.
rect
(screen,green,[120,120,50,50],2) pygame.draw.
rect
(screen,green,[170,170…,[220,370,50,50],2) pygame.draw.
rect
(screen,green,[270,320,50,50],2) …
VB.Net How to rotate a rectangle by mouse click and drag
Programming
Software Development
8 Years Ago
by Maurice_4
…PosSizableRect.RightMiddle Return Me.CreateRectSizableNode(Me.
rect
.X + Me.
rect
.Width, Me.
rect
.Y + Me.
rect
.Height / 2) Case UserRect.….RightBottom Return Me.CreateRectSizableNode(Me.
rect
.X + Me.
rect
.Width, Me.
rect
.Y + Me.
rect
.Height) Case UserRect.PosSizableRect.BottomMiddle…
Collision Detection
Programming
Software Development
18 Years Ago
by balekic
…(SDL_Rect&
rect
) {
rect
.x = m_x;
rect
.y = m_y;
rect
.w = batWidth;
rect
.h = batHeight…
rect
) {
rect
.x = m_x;
rect
.y = m_y;
rect
.w = brickWidth;
rect
.h = brickHeight; } void draw(SDL_Surface* screen) { SDL_Rect
rect
;
rect
.x = m_x + 10;
rect
…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC