• Draw a 2D national flag using OpenGL
一、设计根据
下图中包含了国旗长度比例、5个五角星的大小比例和相对位置、国旗颜色与五角星颜色
二、编程思路
这个实验起初看起来是比较简单的,但实际开始设计时却遇到几个问题,比如五角星应该如何设计,5颗星星的相对位置如何精确定位,其中还包含了图形的移位、拉伸、旋转等原理。
文 件 列 表
柯丰_3130104598_A2 Debug flag flag.sln flag.v12.suo instruction.doc ipch 输出效果图.png
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001084s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.066438s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001016s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001190s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.000881s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003213s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000903s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.005087s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.025003s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001622s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 307673 [ RunTime:0.020864s ]