登录
首页 » c++ » 计算机图形学第五章

计算机图形学第五章

于 2022-09-20 发布 文件大小:1.10 kB
0 113
下载积分: 2 下载次数: 1

代码说明:

 #include// OPenGL实用工具库  constint XL=100; constint XR=300; constint YB=100; constint YT=200; int x1=150,y1=50,x2=250,y2=150;  #defineLIFT 1 #defineRIGHT 2 #defineBOTTOM 4 #defineTOP 8 char encode(floatx,floaty) {  char c=0;  if(xXR) c|=RIGHT;  if(yYT) c|=TOP;  return c; }  void CSLineClip(int&x1,int&y1,int&x2,int&y2,intXL,intXR,intYB,intYT) {  char code1=encode(x1,y1);  char code2=encode(x2,y2);  int x,y;  char code = 3;  while (code1||code2)  {   if(code1 != 0)   {    code=code1;   }else   {

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Word操作类 以及创建表格示例源码
    Word操作类 以及创建表格示例源码
    2013-10-07下载
    积分:1
  • che_zai_ni_bian_qi
    车载并联均流型逆变器的设计与实现.前级高频升压采用推挽软开关技术。(Onboard parallel pattern and realize the inverter design. )
    2014-08-13 09:39:26下载
    积分:1
  • ggmle
    Matlab implementation of the moment matching and maximum likelihood estimators for the generalized Gaussian density.
    2014-01-25 14:36:24下载
    积分:1
  • 基于STM32的智能家居控制
    以STM32为控制芯片,以GPRS通信为基础、能通过无线通信技术实时监控家居的温湿度状态,并能自由控制家居的电器的开关操作。同时集成光强采集电路,能自动开关窗帘的功能。
    2022-12-03 19:35:05下载
    积分:1
  • WinPcap
    WinPcap中文帮助手册,网络编程必备帮助文档,包含了大量的函数。(WinPcap Chinese help manuals, network programming necessary to help document, contains a large number of functions.)
    2009-01-10 15:39:48下载
    积分:1
  • 单片机50Hz数字滤波器
    首先用matlab编程仿真50hz的数字滤波器,然后在单片机上用c语言编写数字滤波器,实现50hz工频的滤波,滤波效果很好。
    2022-05-15 22:18:16下载
    积分:1
  • GPS-data-analysis-
    用51单片机解析GPS数据并在12864液晶显示经纬度、时钟以及高度的源代码程序 (GPS data analysis with 51 single-chip liquid crystal display latitude and longitude in the 12,864, clock, and a high degree of source code program)
    2011-05-09 12:38:33下载
    积分:1
  • 物联网GPS跟踪器demo程序
    WIO GPS Board是一款兼容Arduino的开发板,可帮助您跟踪地球上任何移动的物体。通过将GSM和GPRS以及GPS和北斗集成在一块电路板中,它为您的室外物联网项目提供了一体化解决方案。 本工程是基于MC20和arduino开发的实时GPS定位器,实时获取当前GPS位置信息,并通过SMS短信发送到预设的手机号码上。(WIO GPS Board is an Arduino compatible development board that helps you to track any moving things on the planet. By integrating GSM&GPRS as well as GPS&BeiDou in one board, it provides an all-in-one solution for your out-door IoT project.)
    2020-06-16 08:00:02下载
    积分:1
  • 785744
    使程序窗口总在最前面显示,C++Builder精选编程学习源码,很好的参考资料。(The program window display at the front, C++Builder select learning programming source code, a good reference.)
    2013-11-22 06:25:30下载
    积分:1
  • C++采用高斯消元法求取矩阵的逆
    基于高斯消元法 求取矩阵的逆,可以改写成子程序
    2022-06-11 13:02:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载