pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<legend id='oV2w9'><style id='oV2w9'><dir id='oV2w9'><q id='oV2w9'></q></dir></style></legend>
    • <bdo id='oV2w9'></bdo><ul id='oV2w9'></ul>

      <small id='oV2w9'></small><noframes id='oV2w9'>

      <i id='oV2w9'><tr id='oV2w9'><dt id='oV2w9'><q id='oV2w9'><span id='oV2w9'><b id='oV2w9'><form id='oV2w9'><ins id='oV2w9'></ins><ul id='oV2w9'></ul><sub id='oV2w9'></sub></form><legend id='oV2w9'></legend><bdo id='oV2w9'><pre id='oV2w9'><center id='oV2w9'></center></pre></bdo></b><th id='oV2w9'></th></span></q></dt></tr></i><div class="xrzfnjr" id='oV2w9'><tfoot id='oV2w9'></tfoot><dl id='oV2w9'><fieldset id='oV2w9'></fieldset></dl></div>
    1. <tfoot id='oV2w9'></tfoot>
      1. 釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對象

        Release textures (GLKTextureInfo objects) allocated by GLKTextureLoader(釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對象))

              <bdo id='y5HZK'></bdo><ul id='y5HZK'></ul>

              <small id='y5HZK'></small><noframes id='y5HZK'>

            • <tfoot id='y5HZK'></tfoot>
                <i id='y5HZK'><tr id='y5HZK'><dt id='y5HZK'><q id='y5HZK'><span id='y5HZK'><b id='y5HZK'><form id='y5HZK'><ins id='y5HZK'></ins><ul id='y5HZK'></ul><sub id='y5HZK'></sub></form><legend id='y5HZK'></legend><bdo id='y5HZK'><pre id='y5HZK'><center id='y5HZK'></center></pre></bdo></b><th id='y5HZK'></th></span></q></dt></tr></i><div class="3ztfnrv" id='y5HZK'><tfoot id='y5HZK'></tfoot><dl id='y5HZK'><fieldset id='y5HZK'></fieldset></dl></div>
                    <tbody id='y5HZK'></tbody>

                  <legend id='y5HZK'><style id='y5HZK'><dir id='y5HZK'><q id='y5HZK'></q></dir></style></legend>
                  本文介紹了釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對象)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  剛開始在 iOS 上進行開發,尤其是 iOS 5 上與 OpenGL 相關的新功能,所以如果我的任何問題都非常基礎,我深表歉意.

                  New to developing on iOS and in particular the new OpenGL related features on iOS 5, so I apologize if any of my questions are so basic.

                  我正在開發的應用程序旨在接收相機幀并通過 OpenGL ES 在屏幕上顯示它們(圖形人員將接管它并添加我知之甚少的實際 OpenGL 繪圖).該應用程序是 XCode4 開發的,目標是運行 iOS 5 的 iPhone4.目前,我使用了 ARC 和 GLKit 功能,除了將圖像加載為紋理時出現內存泄漏外,一切都運行良好.該應用很快就會收到內存警告".

                  The app I am working on is designed to receive camera frames and display them on screen via OpenGL ES (the graphic folks will take over this and add the actual OpenGL drawing about which I know very little). The application is developed XCode4, and the target is iPhone4 running iOS 5. For the moment, I used the ARC and the GLKit functionality and all is working fine except for the memory leak in loading the images as texture. The app receives a "memory warning" very soon.

                  具體想問一下怎么釋放分配的貼圖

                  Specifically, I would like to ask how to release the textures allocated by

                  @property(retain) GLKTextureInfo *texture;
                  
                  -(void)setTextureCGImage:(CGImageRef)image 
                  {
                      NSError *error;
                  
                      self.texture = [GLKTextureLoader textureWithCGImage:image options:nil error:&error];
                  
                      if (error) 
                      {
                          NSLog(@"Error loading texture from image: %@",error);
                      }
                  }
                  

                  image 是從相機框架構建的石英圖像(來自蘋果的示例代碼).我知道問題不在代碼的那部分,因為如果我禁用分配,應用程序不會收到警告.

                  The image is a quartz image built from the camera frame (sample code from apple). I know the problem is not in that part of the code since if I disable the assignment, the app does not receive the warning.

                  推薦答案

                  我相信超級 hacky 解決方案,但它似乎有效:

                  Super hacky solution I believe, but it seems to work:

                  在賦值前添加以下內容:

                  Add the following before the assignment:

                  GLuint name = self.texture.name;
                  glDeleteTextures(1, &name);
                  

                  如果有更官方的方式(或者如果這是官方方式),如果有人可以告訴我,我將不勝感激.

                  If there's a more official way (or if this is the official way), I would appreciate if someone could let me know.

                  這篇關于釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對象)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過點擊動畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報)
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標已經包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進度圖像(iOS 5 屬性))

                    • <tfoot id='iu4U1'></tfoot>
                    • <i id='iu4U1'><tr id='iu4U1'><dt id='iu4U1'><q id='iu4U1'><span id='iu4U1'><b id='iu4U1'><form id='iu4U1'><ins id='iu4U1'></ins><ul id='iu4U1'></ul><sub id='iu4U1'></sub></form><legend id='iu4U1'></legend><bdo id='iu4U1'><pre id='iu4U1'><center id='iu4U1'></center></pre></bdo></b><th id='iu4U1'></th></span></q></dt></tr></i><div class="5ptlhvh" id='iu4U1'><tfoot id='iu4U1'></tfoot><dl id='iu4U1'><fieldset id='iu4U1'></fieldset></dl></div>
                          <tbody id='iu4U1'></tbody>
                          <bdo id='iu4U1'></bdo><ul id='iu4U1'></ul>
                          <legend id='iu4U1'><style id='iu4U1'><dir id='iu4U1'><q id='iu4U1'></q></dir></style></legend>

                            <small id='iu4U1'></small><noframes id='iu4U1'>

                            主站蜘蛛池模板: 【星耀裂变】_企微SCRM_任务宝_视频号分销裂变_企业微信裂变增长_私域流量_裂变营销 | 电池高低温试验箱-气态冲击箱-双层电池防爆箱|简户百科 | 游动电流仪-流通式浊度分析仪-杰普仪器(上海)有限公司 | 东莞猎头公司_深圳猎头公司_广州猎头公司-广东万诚猎头提供企业中高端人才招聘服务 | 橡胶接头_橡胶软接头_套管伸缩器_管道伸缩器厂家-巩义市远大供水材料有限公司 | 搜活动房网—活动房_集装箱活动房_集成房屋_活动房屋 | 亮点云建站-网站建设制作平台| Brotu | 关注AI,Web3.0,VR/AR,GPT,元宇宙区块链数字产业 | 步进电机_agv电机_伺服马达-伺服轮毂电机-和利时电机 | FFU_空气初效|中效|高效过滤器_空调过滤网-广州梓净净化设备有限公司 | 整合营销推广|营销网络推广公司|石家庄网站优化推广公司|智营销 好物生环保网、环保论坛 - 环保人的学习交流平台 | 药品/药物稳定性试验考察箱-埃里森仪器设备(上海)有限公司 | 挤出熔体泵_高温熔体泵_熔体出料泵_郑州海科熔体泵有限公司 | 煤机配件厂家_刮板机配件_链轮轴组_河南双志机械设备有限公司 | 破碎机_上海破碎机_破碎机设备_破碎机厂家-上海山卓重工机械有限公司 | 密集架-手摇-智能-移动-价格_内蒙古档案密集架生产厂家 | 螺旋绞龙叶片,螺旋输送机厂家,山东螺旋输送机-淄博长江机械制造有限公司 | 上海软件开发-上海软件公司-软件外包-企业软件定制开发公司-咏熠科技 | 澳门精准正版免费大全,2025新澳门全年免费,新澳天天开奖免费资料大全最新,新澳2025今晚开奖资料,新澳马今天最快最新图库 | PE一体化污水处理设备_地埋式生活污水净化槽定制厂家-岩康塑业 | 常州律师事务所_常州律所_常州律师-江苏乐天律师事务所 | 海鲜池-专注海鲜鱼缸、移动海鲜缸、饭店鱼缸设计定做-日晟水族厂家 | 磷酸肌酸二钠盐,肌酐磷酰氯-沾化欣瑞康生物科技 | 乐之康护 - 专业护工服务平台,提供医院陪护-居家照护-居家康复 | 吸音板,隔音板,吸音材料,吸音板价格,声学材料 - 佛山诺声吸音板厂家 | 盘扣式脚手架-附着式升降脚手架-移动脚手架,专ye承包服务商 - 苏州安踏脚手架工程有限公司 | 法兰螺母 - 不锈钢螺母制造厂家 - 万千紧固件--螺母街 | 无痕胶_可移胶_无痕双面胶带_可移无痕胶厂家-东莞凯峰 | 诚暄电子公司首页-线路板打样,pcb线路板打样加工制作厂家 | 涿州网站建设_网站设计_网站制作_做网站_固安良言多米网络公司 | 热熔胶网膜|pes热熔网膜价格|eva热熔胶膜|热熔胶膜|tpu热熔胶膜厂家-苏州惠洋胶粘制品有限公司 | 多功能干燥机,过滤洗涤干燥三合一设备-无锡市张华医药设备有限公司 | 高压微雾加湿器_工业加湿器_温室喷雾-昌润空气净化设备 | 耐火浇注料价格-高强高铝-刚玉碳化硅耐磨浇注料厂家【直销】 | 六维力传感器_六分量力传感器_模腔压力传感器-南京数智微传感科技有限公司 | 深圳展厅设计_企业展馆设计_展厅设计公司_数字展厅设计_深圳百艺堂 | 英国公司注册-新加坡公司注册-香港公司开户-离岸公司账户-杭州商标注册-杭州优创企业 | 作文导航网_作文之家_满分作文_优秀作文_作文大全_作文素材_最新作文分享发布平台 | 质检报告_CE认证_FCC认证_SRRC认证_PSE认证_第三方检测机构-深圳市环测威检测技术有限公司 | 衡阳耐适防护科技有限公司——威仕盾焊接防护用品官网/焊工手套/焊接防护服/皮革防护手套 | 厂房出租-厂房规划-食品技术-厂房设计-厂房装修-建筑施工-设备供应-设备求购-龙爪豆食品行业平台 |