How to return BMAP 's filename?

Posted By: 20BN

How to return BMAP 's filename? - 03/06/18 15:01

Hi all.
How to return BMAP 's filename?

BMAP* vvv = "me.bmp";
STRING* nnn = "";
void test()
{
//HOW TO use any script command return nnn = "me.bmp" ?????
//NOT SET str_cpy!!!!
//LIKE str_for_entfile returm ENTITY's file name.
}


thank your time!
Posted By: Superku

Re: How to return BMAP 's filename? - 03/06/18 17:46

Have a look at atypes.h:

Code:
typedef struct BMAP {
	C_LINK	link;
	long 	width,height; // original size of the bitmap
	long	bytespp;	// original bytes per pixel (1..4)
	void	*ptr;		// internal use
	byte	*pixels;	// ptr to palettized, 565, 4444, 888 or 8888 coded original image
	long	flags;      // see BMPF_... above
	void	*d3dtex;	// 	LPDIRECT3DTEXTURE9 (usually a different format than the original image)
	float	u1,v1,u2,v2; // texture pixel bounds
	long	u,v;		// cutout start size
	long	refcount;	// for implicitely created bmaps
	long	finalwidth,finalheight,finalbytespp;
	long	pitch,finalpitch;
	long	miplevels;
	long	finalformat;
	void	*finalbits;	// bitmap content when locked, otherwise NULL
} BMAP;


Doesn't seem like the bmap filename is saved in any attribute. You will have to find another way to write your code.
© 2024 lite-C Forums