Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Can you clear TEXT object #405024
07/21/12 10:09
07/21/12 10:09
Joined: Dec 2009
Posts: 128
China
frankjiang Offline OP
Member
frankjiang  Offline OP
Member

Joined: Dec 2009
Posts: 128
China
Code:
//	if r==1 0.035 kb will be lost,
//	and then if r==2 0.070 kb will be lost, can i Clear this TEXT object

//	Remarks:
//	Scene antialiasing settings in the 3D card settings menu can make bitmap fonts look blurry, depending on the 3D hardware and driver version. Use d3d_antialias for scene antialiasing. 
//	The TEXT struct is defined in include\atypes.h. 
//	Use txt_create() for creating a text object at runtime. 



	int r=2;		
	
	TEXT* text = txt_create(r,0);
	int i;
	for(i=0;i<r;i++){
		(text->pstring)[i] = str_create("a");
	}
	text.flags = SHOW;
	for(i=0;i<r;i++){
		ptr_remove((text->pstring)[i]);
		
	}
	ptr_remove(text);




development 3d game is interesting!
Re: Can you clear TEXT object [Re: frankjiang] #405026
07/21/12 10:34
07/21/12 10:34
Joined: Dec 2009
Posts: 128
China
frankjiang Offline OP
Member
frankjiang  Offline OP
Member

Joined: Dec 2009
Posts: 128
China
Ok,I know that,like this is right:
===================================
STRING* str=str_create("hello");

TEXT* mytext;
mytext = txt_create(r,0);
int i;
for(i=0;i<r;i++){
// (mytext->pstring)[i] = str_create("#0");
STRING* _s= (mytext->pstring)[i];
_s = str;
}
mytext.flags = SHOW;


// remove the strings of the text
for (i = 0; i < mytext->strings; i++){
STRING* s= (mytext->pstring)[i];

if(s){
ptr_remove(s);
}
}
ptr_remove(mytext);
ptr_remove(str);


development 3d game is interesting!

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1