Click here to Skip to main content
15,920,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Application Setup Pin
Hamid_RT18-Jan-07 1:33
Hamid_RT18-Jan-07 1:33 
AnswerRe: Application Setup Pin
toxcct18-Jan-07 1:40
toxcct18-Jan-07 1:40 
QuestionCan call all API in SDK in VC++.Net Pin
Atul2318-Jan-07 1:09
Atul2318-Jan-07 1:09 
AnswerRe: Can call all API in SDK in VC++.Net Pin
Christian Graus18-Jan-07 1:30
protectorChristian Graus18-Jan-07 1:30 
AnswerRe: Can call all API in SDK in VC++.Net Pin
#realJSOP18-Jan-07 1:35
professional#realJSOP18-Jan-07 1:35 
QuestionIIs it possible that add background image to (MFC)Editbox(and Other Control)? Pin
MJ Lee18-Jan-07 1:07
MJ Lee18-Jan-07 1:07 
AnswerRe: IIs it possible that add background image to (MFC)Editbox(and Other Control)? Pin
Christian Graus18-Jan-07 1:34
protectorChristian Graus18-Jan-07 1:34 
AnswerRe: IIs it possible that add background image to (MFC)Editbox(and Other Control)? Pin
Hamid_RT18-Jan-07 1:39
Hamid_RT18-Jan-07 1:39 
QuestionGetProcessId equivalent Pin
aliaa18-Jan-07 1:00
aliaa18-Jan-07 1:00 
AnswerRe: GetProcessId equivalent Pin
Roger Stoltz18-Jan-07 2:09
Roger Stoltz18-Jan-07 2:09 
AnswerRe: GetProcessId equivalent Pin
Mark Salsbery18-Jan-07 6:25
Mark Salsbery18-Jan-07 6:25 
QuestionHow to copy resource from one file to other Pin
Atul2318-Jan-07 0:58
Atul2318-Jan-07 0:58 
AnswerRe: How to copy resource from one file to other Pin
Iain Clarke, Warrior Programmer18-Jan-07 1:45
Iain Clarke, Warrior Programmer18-Jan-07 1:45 
QuestionUnresolved token error Pin
73Zeppelin18-Jan-07 0:49
73Zeppelin18-Jan-07 0:49 
AnswerRe: Unresolved token error Pin
Cedric Moonen18-Jan-07 0:52
Cedric Moonen18-Jan-07 0:52 
GeneralRe: Unresolved token error Pin
73Zeppelin18-Jan-07 0:58
73Zeppelin18-Jan-07 0:58 
AnswerRe: Unresolved token error Pin
73Zeppelin18-Jan-07 1:56
73Zeppelin18-Jan-07 1:56 
GeneralRe: Unresolved token error Pin
Cedric Moonen18-Jan-07 2:35
Cedric Moonen18-Jan-07 2:35 
GeneralRe: Unresolved token error Pin
73Zeppelin18-Jan-07 2:43
73Zeppelin18-Jan-07 2:43 
GeneralRe: Unresolved token error Pin
jhwurmbach18-Jan-07 2:47
jhwurmbach18-Jan-07 2:47 
GeneralRe: Unresolved token error Pin
73Zeppelin18-Jan-07 3:04
73Zeppelin18-Jan-07 3:04 
QuestionDereferencing an normal array [modified] Pin
zqueezy18-Jan-07 0:36
zqueezy18-Jan-07 0:36 
AnswerRe: Dereferencing an normal array Pin
Iain Clarke, Warrior Programmer18-Jan-07 1:54
Iain Clarke, Warrior Programmer18-Jan-07 1:54 
GeneralNONONO need still help! Pin
zqueezy18-Jan-07 4:35
zqueezy18-Jan-07 4:35 
nonono the normals have been calculated already!!! (via SSE-asm)
I stored them in a group.
so iterating:
<br />
if (ModelToDraw.shownormals)<br />
{<br />
	// Loop through the vertices and normals and draw the normal<br />
	for (int k = 0; k < ModelToDraw.Objects[i].numVerts * 3; k += 3)<br />
	{<br />
	// Draw a line between the vertex and the end of the normal<br />
		glBegin(GL_LINES);<br />
			glVertex3f(ModelToDraw.Objects[i].Vertexes[k],<br />
			ModelToDraw.Objects[i].Vertexes[k+1],<br />
			ModelToDraw.Objects[i].Vertexes[k+2]);<br />
			glVertex3f(ModelToDraw.Objects[i].Vertexes[k]+ModelToDraw.Objects[i].Normals[k],<br />
			ModelToDraw.Objects[i].Vertexes[k+1]+ModelToDraw.Objects[i].Normals[k+1],<br />
			ModelToDraw.Objects[i].Vertexes[k+2]+ModelToDraw.Objects[i].Normals[k+2]);<br />
		glEnd();<br />
	}<br />
}<br />

is no problem at all... just hopping around in the array like described above makes problems!
I don't want to calculate the normals again and again when I render the triangles!
GeneralRe: NONONO need still help! Pin
El Corazon18-Jan-07 4:58
El Corazon18-Jan-07 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.