GL3CharacterRenderer::GL3CharacterRenderer(Client *client, GL3Renderer *renderer) :
	client(client),
	renderer(renderer)
{
	buildBody();
	buildHead();
}
Example #2
0
void HTMLBuilder::clear(IEView *view, IEVIEWEVENT *event) {
	if (event != NULL) {
		setLastIEViewEvent(event);
	}
	if (lastIEViewEvent.pszProto != NULL || event->hContact == NULL) {
		buildHead(view, &lastIEViewEvent);
	}
}
void KAsyncFetchObject::sendHead(KHttpRequest *rq)
{
	//进入试发送阶段
	badStage = BadStage_TrySend;
	if (buffer.getLen()==0) {
		/////////[397]
		buildHead(rq);
	}
	unsigned len = buffer.startRead();
	if (len==0) {
		handleError(rq,STATUS_SERVER_ERROR,"cann't build head");
		return;
	}
	client->socket->setdelay();
	/////////[398]
	client->upstream_write(rq,resultUpstreamSendHead,bufferUpstreamSendHead);
}
Example #4
0
int main (void)
{
	//	Local Declarations
    HEAD* pHeader = NULL;
    
	//	Statements
    pHeader = buildHead(pHeader, "data.txt");
    getOption(pHeader);
    
	printf ("\nSaving data ... \n");
	if (outputFile(pHeader->pHash))
		printf ("Successfully saved\n");
	else
		printf ("Could not save to file.\n");
    pHeader = destroy(pHeader);
    
	
#ifdef _MSC_VER
	printf( _CrtDumpMemoryLeaks() ? "Memory Leak\n" : "No Memory Leak\n");
#endif
    return 0;
}	// main