当前位置: 首页 > news >正文

苏州园区手机网站制作网页ui素材中心下载

苏州园区手机网站制作,网页ui素材中心下载,如何在空白服务器上搭建网站,大学生创新创业大赛的意义有时直接创建OpenGL形式不适合#xff0c;或者干脆不同意然后创建一个表单#xff0c;正如我现在这个项目#xff0c;创建窗体不显示#xff0c;它仅限于主框架。而我只是ActiveX里做一些相关工作#xff0c;那仅仅能用到OpenGL的离屏渲染技术了~即不直接绘制到窗体上或者干脆不同意然后创建一个表单正如我现在这个项目创建窗体不显示它仅限于主框架。而我只是ActiveX里做一些相关工作那仅仅能用到OpenGL的离屏渲染技术了~即不直接绘制到窗体上而是绘制到一张位图上。然后再次调用这张位图实现兴许的工作。 以下就总结怎么使用所谓的“离屏渲染”。 const int WIDTH 500;const int HEIGHT 500;// Create a memory DC compatible with the screenHDC hdc CreateCompatibleDC(0);if (hdc 0) coutCould not create memory device context;// Create a bitmap compatible with the DC// must use CreateDIBSection(), and this means all pixel ops must be synchronised// using calls to GdiFlush() (see CreateDIBSection() docs)BITMAPINFO bmi {{ sizeof(BITMAPINFOHEADER), WIDTH, HEIGHT, 1, 32, BI_RGB, 0, 0, 0, 0, 0 },{ 0 }};unsigned char *pbits; // pointer to bitmap bitsHBITMAP hbm CreateDIBSection(hdc, bmi, DIB_RGB_COLORS, (void **) pbits,0, 0);if (hbm 0) coutCould not create bitmap;//HDC hdcScreen GetDC(0);//HBITMAP hbm CreateCompatibleBitmap(hdcScreen,WIDTH,HEIGHT);// Select the bitmap into the DCHGDIOBJ r SelectObject(hdc, hbm);if (r 0) coutCould not select bitmap into DC;// Choose the pixel formatPIXELFORMATDESCRIPTOR pfd {sizeof (PIXELFORMATDESCRIPTOR), // struct size1, // Version numberPFD_DRAW_TO_BITMAP | PFD_SUPPORT_OPENGL, // use OpenGL drawing to BMPFD_TYPE_RGBA, // RGBA pixel values32, // color bits0, 0, 0, // RGB bits shift sizes...0, 0, 0, // Dont care about them0, 0, // No alpha buffer info0, 0, 0, 0, 0, // No accumulation buffer32, // depth buffer bits0, // No stencil buffer0, // No auxiliary buffersPFD_MAIN_PLANE, // Layer type0, // Reserved (must be 0)0, // No layer mask0, // No visible mask0, // No damage mask};int pfid ChoosePixelFormat(hdc, pfd);if (pfid 0) coutPixel format selection failed;// Set the pixel format// - must be done *after* the bitmap is selected into DCBOOL b SetPixelFormat(hdc, pfid, pfd);if (!b) coutPixel format set failed;// Create the OpenGL resource context (RC) and make it current to the threadHGLRC hglrc wglCreateContext(hdc);if (hglrc 0) coutOpenGL resource context creation failed;wglMakeCurrent(hdc, hglrc);// Draw using GL - remember to sync with GdiFlush()GdiFlush();/*详细的绘制函数~~~~~~~~~~~~~~我就不写了*/// Clean upwglDeleteContext(hglrc); // Delete RCSelectObject(hdc, r); // Remove bitmap from DCDeleteObject(hbm); // Delete bitmapDeleteDC(hdc); // Delete DC 版权声明本文博客原创文章。博客未经同意不得转载。 转载于:https://www.cnblogs.com/bhlsheji/p/4713200.html
http://wiki.neutronadmin.com/news/184050/

相关文章:

  • 门户网站后台管理系统模板免费制作自己的网站
  • 江苏优化网站关键词新商盟显示 检查网站开发错误呢
  • 深圳一定火网站建设cms企业网站管理系统
  • 深圳网站建设深圳网络公司威海城市 建设信息网站
  • 目前做网站流行的是什么10大免费软件下载
  • 惠州网站建设系统广告设计图片网站
  • 郑州flash网站建设凡科互动投票破解
  • 用家用路由器ip做网站app开发公司怎么选
  • wordpress有多少网站网站建设教程最新资讯
  • 建设公司网站费用怎么做账wordpress个人博客主题好看
  • 杭州建设网站职称人才工作专题天元建设集团有限公司设计研究院征求意见
  • 深圳企业网站制作设计腾讯微校怎么做微网站
  • 如何搭建英文网站哪些网站可以免费做简历
  • 北京做网站公司专业团队电脑壁纸
  • 建设网站的合同南川网站建设
  • 广汉手机网站设计好男人视频在线观看免费直播
  • 企业网站设计图设计 中国官网
  • 技术支持 张家港网站建设舒城县重点工程建设局网站
  • 网站跟app的区别是什么织梦网站统计代码
  • 如何创建个人网站赚钱深圳专业做网页的公司
  • 山东做网站建设公司哪家好丹阳网站制作
  • 寻找大连网站建设网站排名影响因素
  • 泉州网站建设平台适合做浏览器主页的网站
  • 怎么备份网站模板云南网站建设是什么
  • 建设工程企业资质工作网站郑州专业做淘宝网站
  • 智云鸟网站建设wordpress注册充值
  • wordpress 网站备案号有哪些官网做得比较好
  • 网站开发小程序开发公司西安做网站的在哪
  • 做网站不优化长腿蜘蛛wordpress
  • 手机创建网站免费网站怎么搭建