Click here to Skip to main content
16,012,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: batch file Pin
Hamid_RT11-Apr-07 18:45
Hamid_RT11-Apr-07 18:45 
QuestionHow to use Internet Explorer with C++ using OLE Pin
Honsik10-Apr-07 12:58
Honsik10-Apr-07 12:58 
AnswerRe: How to use Internet Explorer with C++ using OLE [modified] Pin
George L. Jackson10-Apr-07 15:49
George L. Jackson10-Apr-07 15:49 
AnswerRe: How to use Internet Explorer with C++ using OLE Pin
William.Wang10-Apr-07 19:02
William.Wang10-Apr-07 19:02 
QuestionUnable to Stat Debugging - Microsoft Development Environment Pin
Jahnson K10-Apr-07 12:08
Jahnson K10-Apr-07 12:08 
AnswerRe: Unable to Stat Debugging - Microsoft Development Environment Pin
Rick York10-Apr-07 14:20
mveRick York10-Apr-07 14:20 
QuestionPDF2Tiff Utility Pin
Abbas_Riazi10-Apr-07 11:04
professionalAbbas_Riazi10-Apr-07 11:04 
QuestionDirectX 9 Pin
Dosin10-Apr-07 10:33
Dosin10-Apr-07 10:33 
I am wanting to create a a tree using a quad with a bitmap...
how can I make the quad transparent for black color and display the rest..
and just displaying the tree portion of the quad?

like creating sprites..
LoadTexture("tree.bmp",/*trans color*/ D3DCOLOR_XRGB(0,0,0));


here is the funtion were I load the quad texture...

QUAD *CreateQuad(char *textureFilename)
{
QUAD *quad = (QUAD*)malloc(sizeof(QUAD));

//load the texture
D3DXCreateTextureFromFile(d3ddev, textureFilename, &quad->texture);


d3ddev->CreateVertexBuffer(
4*sizeof(VERTEX),
0,
D3DFVF_MYVERTEX, D3DPOOL_DEFAULT,
&quad->buffer,
NULL);

quad->vertices[0] = CreateVertex(-1.0f, 1.0f, 0.0f, 0.0f, 0.0f);
quad->vertices[1] = CreateVertex( 1.0f, 1.0f, 0.0f, 1.0f, 0.0f);
quad->vertices[2] = CreateVertex(-1.0f,-1.0f, 0.0f, 0.0f, 1.0f);
quad->vertices[3] = CreateVertex( 1.0f,-1.0f, 0.0f, 1.0f, 1.0f);

return quad;
}

or attach a sprite to it?

what I am trying to do is make a 2d object look 3d by rotating a sprite every time the camera moves and attaching the sprite to a quad to rotate the view?

any ideas on how to do this?

AnswerRe: DirectX 9 Pin
Rick York10-Apr-07 11:45
mveRick York10-Apr-07 11:45 
QuestionWMA question Pin
Al_Pennyworth10-Apr-07 7:42
Al_Pennyworth10-Apr-07 7:42 
QuestionRe: WMA question Pin
Mark Salsbery10-Apr-07 7:50
Mark Salsbery10-Apr-07 7:50 
AnswerRe: WMA question Pin
Mark Salsbery10-Apr-07 8:27
Mark Salsbery10-Apr-07 8:27 
GeneralRe: WMA question Pin
toxcct10-Apr-07 8:50
toxcct10-Apr-07 8:50 
GeneralRe: WMA question Pin
Mark Salsbery10-Apr-07 8:53
Mark Salsbery10-Apr-07 8:53 
AnswerRe: WMA question Pin
Michael Dunn10-Apr-07 9:41
sitebuilderMichael Dunn10-Apr-07 9:41 
GeneralRe: WMA question Pin
Al_Pennyworth10-Apr-07 9:51
Al_Pennyworth10-Apr-07 9:51 
GeneralRe: WMA question Pin
Mark Salsbery10-Apr-07 10:16
Mark Salsbery10-Apr-07 10:16 
GeneralRe: WMA question Pin
Michael Dunn10-Apr-07 10:51
sitebuilderMichael Dunn10-Apr-07 10:51 
GeneralRe: WMA question Pin
Al_Pennyworth10-Apr-07 11:41
Al_Pennyworth10-Apr-07 11:41 
QuestionProblem with mfc activex control event in IE7 when open two tabs Pin
txjchen10-Apr-07 7:23
txjchen10-Apr-07 7:23 
QuestionPrinting text on pdf Pin
DanYELL10-Apr-07 6:40
DanYELL10-Apr-07 6:40 
AnswerRe: Printing text on pdf Pin
Mark Salsbery10-Apr-07 7:07
Mark Salsbery10-Apr-07 7:07 
QuestionOpenGL in Visual Studio 2005 Pin
sinosoidal10-Apr-07 6:06
sinosoidal10-Apr-07 6:06 
QuestionHow to create transparent button with bitmap? Pin
Jack bombo10-Apr-07 5:11
Jack bombo10-Apr-07 5:11 
AnswerRe: How to create transparent button with bitmap? Pin
Joan M10-Apr-07 5:59
professionalJoan M10-Apr-07 5:59 

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.