|
One reason I am asking so many questions about graphics programming is because I've found that there are very few graphics programming books. For example, if you were to search Amazon, say, database programming, you'd see many more results than graphics programming. My point is there are very few books on graphics programming.
I read that the one drawback to graphics programming using OpenGL on the Win32 platform is the fact that MS does not update the to the latest OpenGL library, which is 1.4. MS only port up to version 1.1 or 1.2. Secondly, version 2.0 is already in the works. However, there is no plan to port it to the Windows platform.
Right now I am seriously considering these two books. One is on OpenGL. The other book is on graphics programming in C++. Both are very expensive and I do not want to buy the wrong book.
OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 1.4, Fourth Edition
http://www.amazon.com/exec/obidos/tg/detail/-/0321173481/qid=1084372965/sr=8-1/ref=pd_ka_1/002-9611673-6764029?v=glance&s=books&n=507846
Computer Graphics with OpenGL (3rd Edition) by Donald Hearn and M. Pauline Baker
http://www.amazon.com/exec/obidos/tg/detail/-/0130153907/ref=pd_sim_books_3/002-9611673-6764029?v=glance&s=books
Please give inputs if you have read them. Also, other recommendations and good online tutorials would be greatly appreciated.
Kuphryn
|
|
|
|
|
I just learn windows programming, so maybe this question has somewhat of ridiculous.
typedef struct {
HWND hwnd;
UINT message;
WPARAM wParam;
LPARAM lParam;
DWORD time;
POINT pt;
} MSG, *PMSG;
What is the usage of the last two parameter?
|
|
|
|
|
the time is probably system time, or perhaps ticks - allowing you to, at the very least, determine the time delta's between events.
The pt field is a point of where the cursor was for this event. I don't know if it's always valid, or if it is in screen coords or in client coords. Check MSDN to be sure.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
In window procedure, we use the switch-case to choose a message which we want to deal with. However, this window procedure doesn't get the last two parameters. How can I get the last two parameters?
|
|
|
|
|
use GetMessagePos and GetMessageTime
|
|
|
|
|
windows program's running depends on the driving of the event .the program continually wait (using the "while "loop below)
winMain(.....)
{Msg msg;
....
while(GetMessage(&msg))//get the messge from the message queue
{TranslateMessage(....);//judge where is the message from
DispatchMessage(......);//dispath the message
}
...}
os capture any possible input ,then they go into the program by the form of message.the leading role to receive and treat with message is window,every window should have a function(window function)to be responsible for treating with message.
by the help of USER MODULE of os ,the message is dispatched the corresponding window function
that is:WndProc(hwnd,msg,wParam,LParam)
{
switch(msg)
{case wm_create:..
case wm_xxx:..
.....
}
}
that is all,;P
|
|
|
|
|
I mean that WndProc(&MSG) may be a better choice, but the win system use WndProc(hwnd,msg,wParam,LParam), why?
|
|
|
|
|
Is there anyone make a catalog of the essential APIs which a beginner should know?
|
|
|
|
|
I need to write two programs for my algo class...
1) I have to compare the insertionSort, MergeSort and QuickSort on an array of million chars using rand() and clock()...
2) Compare the number of leaves of a binary tree (I have to think recursively)
If anyone can help please do...it has to be done in C...Please anyone help...
TS
|
|
|
|
|
"Help me" is not the same as "do it for me." Show us the code that is giving you trouble, and you're bound to get help.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I'm happy to do this for you. You can use Paypal to pay my fees. I hope your daddy is rich. If you skip out on this lesson, you'll probably need my help for the next one, and the one after that, etc. I can retire and just make a living doing easy programming assignments for rich people too lazy to learn for themselves.
Or you could give it a go and post your code here when you get stuck. Then I'll help for free.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Guiro wrote:
1) I have to compare the insertionSort, MergeSort and QuickSort on an array of million chars using rand() and clock()...
2) Compare the number of leaves of a binary tree (I have to think recursively)
Since you have written those many programming jargons (like Merge Sort, rand(), recursively, ...), you know well about programming and you can do it yourself!
Maxwell Chen
|
|
|
|
|
Hello everyone, I'm looking for information about the AC-3 (also called a52) algorithm.
I've already found an implementation, but it is slow and a very "simple" encoder, not much worth to gather information from it. I also had a look at the standard definition of ATSC, but there are still many unclear things. Does anyone know a good source of information or source codes (no matter which language)?
thx for your answers
Alex
Don't try it, just do it!
|
|
|
|
|
|
I need a library that implements a behaviour of Petri Nets. I know it wouldn't be too hard to implement the functionality myself, but establishing the link with Petri nets is just a secondary (if not tertiary) goal of my course project and a have not enough time to invent a bicycle.
|
|
|
|
|
What about Maria:
http://www.tcs.hut.fi/Software/maria/
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
I would like to detect when the mouse is on any of the edges of the screen and then the user moves the mouse in such a manner that the mouse would go off-screen if it was allowed to do so. I've tried using WM_MOUSEMOVE messages, but the lParam/POINT structure never has negative values. Another option I could see is storing the mouse position from the previous mousemove message and then calculating a slope and whatnot and see if its in certain bounds to consider it to be going off-screen. This is hardly a ideal approach and wouldn't work if the mouse was already near the edge of the screen. I'm sure there is a better way, but I don't have any clue what it could be. Any suggestions?
Thanks,
Aaron
modified 12-Jul-20 21:01pm.
|
|
|
|
|
The best I can see is to detect when it is on the edge of the screen. One of the things you may have notice with programs like the Taskbar is when they hide, they always leave one of the edges showing (at the edge of the screen)so than can detect when mouse (hot spot) passes over it.
INTP
|
|
|
|
|
Thanks, that's always an option, and it looks like that's what I'll go with. A couple pixels probably isn't going to make much of a difference anyway. The reason I ask is I've seen apps, like mouse wrappers, that seem to work the way I want.
Thanks,
Aaron
modified 12-Jul-20 21:01pm.
|
|
|
|
|
What would be the reason for getting following linking error?
a) LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
b)LNK1120: 1 unresolved externals
|
|
|
|
|
LNK2019 is a .NET thing, but you'll also see it as LNK2001 on other platforms. See if this helps.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Thank you very much it is really helpful and now I got no more linking error.
Thank you again.
|
|
|
|
|
Sounds like you setup the project to build a Windows application, when you've probably coded for a console application. To fix the unresolved external symbol_WinMain@16 referenced in function _WinMainCRTStartup go into your project settings and change the "/subsystem:windows" project setting to "/subsystem:console". That should clear up the error. Hope this helps.
Regards,
|
|
|
|
|
I need to display a tif file as a thumbnail on a dialog box. Is there any Activex control available that I can use?
thanks
Man Learns from History that he never learns from History
|
|
|
|
|
Check out
http://www.codeproject.com/vcpp/gdiplus/GdiPThumbnailsViewer.asp
But it is in GDI+ and MFC though
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|