Réponse acceptée !
dsl pour le triple posting mais ya encore du nouveau... pire que tout... Voila la classe CNVOImage:
//-----------------------------------------------------------------------------
// Nom: class CNVOImage
// Desc: Contient une image et ses fonctions d'affichage.
//-----------------------------------------------------------------------------
class CNVOImage
{
public:
CNVOImage();
~CNVOImage();
LPDIRECT3DVERTEXBUFFER9 m_pVB;
LPDIRECT3DDEVICE9 m_pd3dDevice;
D3DXVECTOR3 ScaleCenter;
D3DXVECTOR3 ScaleRotation;
D3DXVECTOR3 Scale;
D3DXVECTOR3 RotationCenter;
D3DXVECTOR3 Rotation;
D3DXVECTOR3 Position;
DWORD m_dwWidth;
DWORD m_dwHeight;
// bool instance;
CULLINFO* m_pCullInfo;
D3DXVECTOR3
*m_vecBoundsLocal; // bounding box coordinates
(in local coord space)
D3DXVECTOR3 m_vecBoundsWorld[8]; // bounding box coordinates (in world coord space)
D3DXPLANE m_planeBoundsWorld[6]; // bounding box planes (in world coord space)
CULLSTATE
m_cullstate; //
whether object is in the view frustum
LPDIRECT3DTEXTURE9* m_pTexture;
inline LPDIRECT3DTEXTURE9 GetTexture(int iIndex) { return m_pTexture[iIndex]; }
void GetWorldMatrix(D3DXMATRIX* matWorld);
HRESULT Instantiate(CNVOImage *psrc);
HRESULT SetSrcRect(SNVORect *rcSrc);
HRESULT SetDestRect(SNVORect *rcDest);
HRESULT SetSize(float fWidth, float fHeight);
HRESULT SetColor(DWORD dwColor, int iCorner = 0);
HRESULT LoadImage(LPDIRECT3DDEVICE9 pDevice, char *pcFilename, SNVOImgLoadFlag *sLoadflag);
HRESULT LoadTexture(LPDIRECT3DDEVICE9 pDevice, char *pcFilename, int iIndex = 0);
HRESULT MakeNormalMap(WORD iIndex);
HRESULT SetCamera(CNVOCamera *Cam);
HRESULT Draw();
HRESULT PreDraw();
HRESULT PostDraw();
};
en gros comme ca ca marche, si je decommente instance ca plante, mais
si je change par exemple DWORD m_dwWidth en WORD en plus, ca remarche!
C'est pas possible qu'une classe bug a l'octel pret comme ca
>_<;;; Avec un compteur static j'arrive avec 68 images
chargées... (61 en comptant les déchargées)
Ah! je viens de changer un truc là... j'ai viré le menu ingame (c'est pas moi qui l'ai fait, c'est mon pote

)
et je suis descendu a 4 images (chargées - déchargées)... vais lui
demander d'optimiser ca puisque maintenant debug et exe marchent ^^
bon ben merci pour ton aide bouba ^^
(sujet clos?)