社区
游戏开发
帖子详情
OpenGL(pixel fomat with neccesary capabilities not found)?什么错误
VCLIFE
2007-10-22 05:48:20
看的是红宝书,建了个win32 console application,然后编译没有错误,执行说找不到什么什么象素格式能力......,这是什么问题。
setting 里面的加入了OpenGL32.lib glut32.lib,
...全文
67
6
打赏
收藏
OpenGL(pixel fomat with neccesary capabilities not found)?什么错误
看的是红宝书,建了个win32 console application,然后编译没有错误,执行说找不到什么什么象素格式能力......,这是什么问题。 setting 里面的加入了OpenGL32.lib glut32.lib,
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
kkzslove999
2009-09-17
打赏
举报
回复
glutInitDisplayMode(GL_DOUBLE|GL_RGB);
用GLUT_DOUBLE|GLUT_RGB
kittmally
2007-11-06
打赏
举报
回复
没见过这样的问题呢还,等待高人给个解释哦
VCLIFE
2007-11-06
打赏
举报
回复
受不了了,没有人来竟然
wangling21908
2007-10-24
打赏
举报
回复
没弄过,帮顶
VCLIFE
2007-10-24
打赏
举报
回复
ding
VCLIFE
2007-10-22
打赏
举报
回复
#include <GL/glut.h>
#include <stdlib.h>
static int year=0,day=0;
void init(void)
{
glClearColor(0.0,0.0,0.0,0.0);
glShadeModel(GL_FLAT);
}
void display(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0,1.0,1.0);
glPushMatrix();
glutWireSphere(1.0,20,16); //draw sun
glRotatef((GLfloat)year,0.0,1.0,0.0);
glTranslatef(2.0,0.0,0.0);
glRotatef((GLfloat)day,0.0,1.0,0.0);
glutWireSphere(0.2,10,8); //draw smaller planet
glPopMatrix();
glutSwapBuffers();
}
void reshape(int w,int h)
{
glViewport(0,0,(GLsizei)w,(GLsizei)h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(60.0,(GLfloat)w/(GLfloat)h,1.0,20.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
gluLookAt(0.0,0.0,5.0,0.0,0.0,0.0,0.0,1.0,0.0);
}
void keyboard(unsigned char key,int x,int y)
{
switch(key)
{
case 'd':
day=(day+10)%360;
glutPostRedisplay();
break;
case 'D':
day=(day-10)%360;
glutPostRedisplay();
break;
case 'y':
year=(year+5)%360;
glutPostRedisplay();
break;
case 'Y':
year=(year-5)%360;
glutPostRedisplay();
break;
default:
break;
}
}
int main(int argc,char **argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GL_DOUBLE|GL_RGB);
glutInitWindowSize(500,500);
glutInitWindowPosition(100,100);
glutCreateWindow(argv[0]);
init();
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutKeyboardFunc(keyboard);
glutMainLoop();
return 0;
}
Protel99SE解决PCB打开Format '%x'问题, 完美解决,本人亲自测试 好用
Protel99SE解决PCB打开Format '%x'问题, 完美解决,本人亲自测试 好用 Protel99SE
fomat
-macros-具有小的模板语言的类似打印/写入/格式的宏的替代语法-Rust开发
fomat
-macros文档,板条箱此板条箱提供了write!,writeln!,print!,println!,eprint!,eprintln!的替代语法。 和格式! 宏
fomat
-macros文档,板条箱此板条箱提供了write!,writeln!,print!,println!,eprint!,eprintln!的替代语法。 和格式! Rust标准库中的宏。 此板条箱中的宏的名称是通过从其std对应项中删除字母r来形成的:wite !、 witeln !、 pint !、 pintln !、 epint !、 epintln !、
fomat
!。 安装将其添加到
Ca
rgo.toml中:[dependencies]
fomat
-macros =“ 0.3.1”并使用.rs文件中的宏,例如:use
fomat
_macros :: pintln; 这
js实现String.
Fomat
的实例代码
下面小编就为大家带来一篇js实现String.
Fomat
的实例代码。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧
群联UP19量产工具MPALL v3.29.0B
群联UP19 UP19量产 UP19 群联 MPALL v3.29.0B
浮云API最简约404页面 内置一言api 点击更换语录
接口可换配置共2条api接口一言:https://api.ooomx.com/api/hitokoto?
fomat
=js 毒鸡汤:https://api.ooomx.com/api/dujitang?
fomat
=js JS援用代码在404.html里130-131行可见
游戏开发
8,303
社区成员
23,682
社区内容
发帖
与我相关
我的任务
游戏开发
游戏开发相关内容讨论专区
复制链接
扫一扫
分享
社区描述
游戏开发相关内容讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章