Save
Forgot Password
Register Here
Resources
Applications
AI
Business
Components and Libraries
Computer Science
Database
Documents And Specifications
Enterprise Application Integration
Game
Hardware
Multimedia
Network
Security
Tools And Utilities
Training And Certification
Web
Languages
Assembly
Basic
C
C#
C++
Delphi
Java
JavaScript
Other Languages
Pascal
Perl
PHP
Python
Ruby
VB-Script
Visual Basic
Platforms
.NET
Browser Based
Consoles
CPU
Embedded
Java Platform
Legacy Platforms
Linux
Macintosh
Mobile Platforms
MS-DOS
Remotely Hosted
UNIX
WEB Service
Windows
Forums
Unanswered Posts
Latest Threads
Latest Posts
Programming Languages
Assembler Developer
Basic
C and C++
C#
Delphi and Kylix
Java
Pascal
Perl
PHP
Python
Ruby
VB.NET
VBA
Visual Basic
Applications
Computer Graphics
Computer Hardware
Database & SQL
Electronics development
Game programming
Matlab
Sound & Music
XML Development
Classifieds
Co-operative Projects
For sale
FreeLance Software City
Jobs Available
Jobs Wanted
Wanted
Microsoft .NET
.NET General
ASP.NET
Miscellaneous
Comments on the PH Re-design
Comments on this site
Computer Emulators
General programming
New programming languages
Off topic board
Mobile & Wireless
Palm Pilot
Multimedia
Demo programming
MP3 programming
Operating Systems & Platforms
Cloud Computing
Embedded / RTOS
FreeBSD
LINUX programming
MS-DOS
Windows CE & Pocket PC
Windows programming
Software Development
Algorithms
Object Orientation
Project Management
Quality & Testing
Security
WEB-Development
Active Server Pages
AJAX
CGI Development
ColdFusion
Flash development
HTML & WEB-Design
Internet Development
JavaScript
WEB Servers
WEB-Services / SOAP
Blogs
Blog Startpage
Latest Blog Posts
Submit
Article
Book
File
Link
News
PAD File
Wiki Article
Jobs
Dev Tools
PH
Search
Newsletter
Merchandise
Top User Lists
Getting Started Guide
Help
Advertise
Contact Us
HOME
>
Forums
>
Windows programming
> DOUBLE BUFFER C++/WIN32?
Windows programming
Moderators: None (
Apply to moderate this forum
)
Number of threads:
3711
Number of posts:
9173
With full replies
Topics only
Windows programming
Subforums
Forum Info
This Forum Only
Single Post View
Linear View
Threaded View
f
Printer Friendly
RSS Feed
DOUBLE BUFFER C++/WIN32?
Posted by
Sagat
on 5 Sept 2000 at 3:58 AM
1. Which class can represent a (fast) double buffer?<br>
2. How do I draw to it?<br>
3. How do I draw it to the screen?<br>
<br>
Any help will be appreciated. Thanks.
Share By Email
Re: DOUBLE BUFFER C++/WIN32?
Posted by
{ Nihilanth }
on 10 Sept 2000 at 7:40 PM
how do you draw to the screen?<br>
<br>
assuming that...<br>
LPDIRECTDRAWSURFACE4 lpddsprimary = NULL;<br>
<br>
you flip it like this:<br>
<br>
lpddsprimary->Flip(NULL, DDFLIP_WAIT);<br>
<br>
how do you draw to the 2x buffer? depends on what you wanna draw. lines? pixels? bitmaps?<br>
<br>
just e-mail me: halfnihilanth@hotmail.com<br>
<br>
<br>
<br>
<br>
<br>
<br>
: 1. Which class can represent a (fast) double buffer?<br>
: 2. How do I draw to it?<br>
: 3. How do I draw it to the screen?<br>
: <br>
: Any help will be appreciated. Thanks.<br>
: <br>
<br>
Share By Email
Re: DOUBLE BUFFER C++/WIN32?
Posted by
Christinme7890
on 9 Apr 2001 at 3:11 PM
: how do you draw to the screen?
:
: assuming that...
: LPDIRECTDRAWSURFACE4 lpddsprimary = NULL;
:
: you flip it like this:
:
: lpddsprimary->Flip(NULL, DDFLIP_WAIT);
:
: how do you draw to the 2x buffer? depends on what you wanna draw. lines? pixels? bitmaps?
:
: just e-mail me: halfnihilanth@hotmail.com
:
:
:
:
:
:
: : 1. Which class can represent a (fast) double buffer?
: : 2. How do I draw to it?
: : 3. How do I draw it to the screen?
: :
: : Any help will be appreciated. Thanks.
: :
There is more stuff you have to do to initiate the direct draw primary buffer. First off you also need to create a secondary buffer:
LPDIRECTDRAWSURFACE4 lpddsprimary=NULL;
LPDIRECTDRAWSURFACE4 lpddssecond=NULL;
ZeroMemory(&ddsd,sizeof(ddsd));
ddsd.dwSize = sizeof( ddsd );
ddsd.dwBackBufferCount = 1;//tells how many back buffers there //are
ddsd.dwFlags = DDSD_CAPS | DDSD_BACKBUFFERCOUNT;
ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE | DDSCAPS_FLIP | DDSCAPS_COMPLEX;
lpDD->CreateSurface( &ddsd, &lpDDSPrimary, NULL );
//back buffer
ddscaps.dwCaps=DDSCAPS_BACKBUFFER;
lpddsprimary->GetAttachedSurface(&ddscaps,&lpddssecond);
any questions please post your question
Share By Email
Recent Jobs
Home
About PH
Privacy Statement
Hosted SubVersion
Hosted Bugtracker
Contact Us
Advertise Here
Official Programmer's Heaven Blogs
Web Hosting
|
Browser and Social Games
|
Gadgets
Popular resources on Programmersheaven.com
Assembly
|
Basic
|
C
|
C#
|
C++
|
Delphi
|
Flash
|
Java
|
JavaScript
|
Pascal
|
Perl
|
PHP
|
Python
|
Ruby
|
Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our
Terms Of Use
and
Privacy Statement
for more information.
Operated by
CommunityHeaven
, a
BootstrapLabs
company.