|
-
Feb 17th, 2005, 04:27 PM
#1
Quote/Code
IDirect3DTexture8 *Texture=NULL;
D3DLOCKED_RECT LR;
Graphics.D3DDevice->CreateTexture(128,128,0,D3DUSAGE_RENDERTARGET,D3DFMT_A8R8G8B8,D3DPOOL_MANAGED,&Texture);
Texture->LockRect(0,&LR,NULL,D3DLOCK_NOSYSLOCK );
for (int y=0;y<128;y++) {
for (int x=0;x<128;x++) {
((unsigned long*)LR.pBits)[x + ((y*LR.Pitch)>>2)]=D3DCOLOR_RGBA(255,0,0,255);
}
}
Code:
IDirect3DTexture8 *Texture=NULL;
D3DLOCKED_RECT LR;
Graphics.D3DDevice->CreateTexture(128,128,0,D3DUSAGE_RENDERTARGET,D3DFMT_A8R8G8B8,D3DPOOL_MANAGED,&Texture);
Texture->LockRect(0,&LR,NULL,D3DLOCK_NOSYSLOCK );
for (int y=0;y<128;y++) {
for (int x=0;x<128;x++) {
((unsigned long*)LR.pBits)[x + ((y*LR.Pitch)>>2)]=D3DCOLOR_RGBA(255,0,0,255);
}
}
IDirect3DTexture8 *Texture =NULL ;
D3DLOCKED_RECT LR ;
Graphics .D3DDevice ->CreateTexture (128,128,0,D3DUSAGE_RENDERTARGET ,D3DFMT_A8R8G8B8 ,D3DPOOL_MANAGED ,&Texture );
Texture ->LockRect (0,&LR ,NULL ,D3DLOCK_NOSYSLOCK );
for (int y =0;y <128;y ++) {
for (int x =0;x <128;x ++) {
((unsigned long*)LR .pBits )[x + ((y *LR .Pitch )>>2)]=D3DCOLOR_RGBA (255,0,0,255);
}
}
<div dir="ltr" style="text-align:left;">
IDirect3DTexture8 *Texture =NULL ;
D3DLOCKED_RECT LR ;
Graphics .D3DDevice ->CreateTexture (128,128,0,D3DUSAGE_RENDERTARGET ,D3DFMT_A8R8G8B8 ,D3DPOOL_MANAGED ,&Texture );
Texture ->LockRect (0,&LR ,NULL ,D3DLOCK_NOSYSLOCK );
for (int y =0;y <128;y ++) {
for (int x =0;x <128;x ++) {
((unsigned long*)LR .pBits )[x + ((y *LR .Pitch )>>2)]=D3DCOLOR_RGBA (255,0,0,255);
}
}
</div>
Blaaaaaaaaaaa
Last edited by NoteMe; Feb 17th, 2005 at 05:38 PM.
-
Feb 17th, 2005, 05:38 PM
#2
Re: Quote/Code
<div dir="ltr" style="text-align:left;">
IDirect3DTexture8 *Texture =NULL ;
D3DLOCKED_RECT LR ;
Graphics .D3DDevice ->CreateTexture (128,128,0,D3DUSAGE_RENDERTARGET ,D3DFMT_A8R8G8B8 ,D3DPOOL_MANAGED ,&Texture );
Texture ->LockRect (0,&LR ,NULL ,D3DLOCK_NOSYSLOCK );
for (int y =0;y <128;y ++) {
for (int x =0;x <128;x ++) {
((unsigned long*)LR .pBits )[x + ((y *LR .Pitch )>>2)]=D3DCOLOR_RGBA (255,0,0,255);
}
}
</div>
bbaahaahhahaha
-
Feb 17th, 2005, 05:52 PM
#3
Re: Quote/Code
fasd
fdf
dsf
dsf
gfde
gfag
erg
ag
reg
erg
re
g
y
juy7
j
53
e
r2w
rtwe
fwef
wf
w
fw
few
fw
etf
432t
43t
4t
ds
ag
dag
ag
r4t
g3
t43
t43
t
t
rewt
43t
43
t34
t34q
t43
6t43
t
rsgf
dsa
fgdw
at
4t
43t
43qt
4t
q3t
43
t43
t4
3t34q5t
erw
fed
af
dsaf
t
4ew
tq
t43
tq
t4gfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
hmmm
Last edited by NoteMe; Feb 17th, 2005 at 05:56 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|