renderao.h

来自「一个symbian 冒险游戏代码」· C头文件 代码 · 共 34 行

H
34
字号
////////////////////////////////////////////////////////////////////////
//
// RenderAO.h - minimal active object implementation. Used for 
//              rendering by CDirectScreenBitmap
//
// Copyright (c) 2006 Nokia Corporation.  All rights reserved.
//
////////////////////////////////////////////////////////////////////////

#ifndef __RENDERAO_H__

#include <e32base.h>

class CRenderActive : public CActive
  {
public:
    CRenderActive();    
    void Activate() { SetActive(); }
    TRequestStatus* Status() { return &iStatus; }
    
private:
  void DoCancel() { /* nothing to do */ }
  void RunL() { /* nothing to do */ } 
  };

// construct with priority and add us to the scheduler
CRenderActive::CRenderActive()
: CActive(CActive::EPriorityHigh)
	{
	CActiveScheduler::Add(this);
	}

#endif __RENDERAO_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?