只要先解决在DirectDraw上写字就可以了,D3D的暂时不考虑
UP有分,
解决问题者单独开帖送100分

解决方案 »

  1.   

    最简单的方法,从你的DirectDraw表面得到Device Context,然后用GDI画图,不过由于用了GDI,效率不高。
    给你贴一段代码:int Draw_Text_GDI(char *text, int x,int y,
                      COLORREF color, LPDIRECTDRAWSURFACE7 lpdds)
    {
    HDC xdc; // the working dc// get the dc from surface
    if (FAILED(lpdds->GetDC(&xdc)))
       return(0);// set the colors for the text up
    SetTextColor(xdc,color);// set background mode to transparent so black isn't copied
    SetBkMode(xdc, TRANSPARENT);TextOut(xdc,x,y,text,strlen(text));lpdds->ReleaseDC(xdc);return(1);
    }
      

  2.   

    这一篇什关于用GDI绘制的
    http://www.gamedev.net/reference/articles/article1001.asp这个是自己绘制True type font字体,难度比较大
    http://www.gamedev.net/reference/articles/article1001.asp
      

  3.   

    兄弟阿 我说的是在别人的游戏窗口上写文字如果简单地写上去 别人的游戏一flip我的文字就看不到了
    如果我用定时器闪烁的利害
      

  4.   

    我的看法是拦截::BitBlt(),在内存中写字。
      

  5.   

    游戏都是Dirextx,拦截::BitBlt()不行吧
      

  6.   

    游戏是DirectX,但是向缓冲页写入时还是要用bitblt的