025
15.04.2007, 22:44
Pyro Phoenix
|
Wäre auch nicht schlecht, wenn du den unterschied zwischen einem Singleframe und einem Groupframe erklärst.
Weil ich hab das immernochnich so ganz kapiert, was ein Groupframe überhaupt ist. Bzw. wie es funktioniert.
Mein Tipp: Bilder sagen mehr als 1000 Worte
--
Dieser Beitrag wurde am 15.04.2007 um 22:47 von Pyro Phoenix bearbeitet.
|
|
Profil || Suche
|
026
16.04.2007, 13:13
Kriz
|
Ich kann dir das nicht sagen, da ich noch nie einen Groupframe gesehen habe.
--
K:R-I)Z++ "CSS ist cascading style sheets. Und nicht so'n Ranzspiel." - dp In memory of Voice ( 2005/03/30)
|
|
Profil || Suche
|
027
16.04.2007, 17:20
Pyro Phoenix
|
Ahhrgh ... mal bei VALVe anfragen. Vllt. ham die ja eins auf Lager.
--
|
|
Profil || Suche
|
028
27.04.2007, 19:32
Pyro Phoenix
|
// // write out the frames // curframe = 0;
for (i=0 ; i<sprite.numframes ; i++) { SafeWrite (spriteouthandle, &frames[curframe].type, sizeof(frames[curframe].type));
if (frames[curframe].type == SPR_SINGLE) { // // single (non-grouped) frame // WriteFrame (spriteouthandle, curframe); curframe++; } else { int j, numframes; dspritegroup_t dsgroup; float totinterval;
groupframe = curframe; curframe++; numframes = frames[groupframe].numgroupframes;
// // set and write the group header // dsgroup.numframes = LittleLong (numframes);
SafeWrite (spriteouthandle, &dsgroup, sizeof(dsgroup));
// // write the interval array // totinterval = 0.0;
for (j=0 ; j<numframes ; j++) { dspriteinterval_t temp;
totinterval += frames[groupframe+1+j].interval; temp.interval = LittleFloat (totinterval);
SafeWrite (spriteouthandle, &temp, sizeof(temp)); }
for (j=0 ; j<numframes ; j++) { WriteFrame (spriteouthandle, curframe); curframe++; } } }
}
---------------------------------------------------------------------------------------------- void Cmd_GroupStart (void) { int groupframe;
groupframe = framecount++;
frames[groupframe].type = SPR_GROUP; frames[groupframe].numgroupframes = 0;
while (1) { GetToken (true); if (endofscript) Error ("End of file during group");
if (!strcmp (token, "$frame")) { Cmd_Frame (); frames[groupframe].numgroupframes++; } else if (!strcmp (token, "$load")) { Cmd_Load (); } else if (!strcmp (token, "$groupend")) { break; } else { Error ("$frame, $load, or $groupend expected\n"); }
}
if (frames[groupframe].numgroupframes == 0) Error ("Empty group\n"); }
Kannst du mir damit evtl. erklären, wie ein Groupframe aufgebaut ist ? ;P
--
Dieser Beitrag wurde am 27.04.2007 um 19:40 von Pyro Phoenix bearbeitet.
|
|
Profil || Suche
|